diff --git a/media/codec2/sfplugin/CCodecBufferChannel.cpp b/media/codec2/sfplugin/CCodecBufferChannel.cpp index e902b5d278..3773528fc7 100644 --- a/media/codec2/sfplugin/CCodecBufferChannel.cpp +++ b/media/codec2/sfplugin/CCodecBufferChannel.cpp @@ -1705,8 +1705,8 @@ bool CCodecBufferChannel::handleWork( } } - if (!buffer && !flags) { - ALOGV("[%s] onWorkDone: Not reporting output buffer (%lld)", + if (!buffer && !flags && outputFormat == nullptr) { + ALOGV("[%s] onWorkDone: nothing to report from the work (%lld)", mName, work->input.ordinal.frameIndex.peekull()); return true; }