[FFmpeg-devel] [PATCH 6/6] avcodec/mediacodecdec_common: propagate EOF immediately when signaled by decoder

Aman Gupta ffmpeg at tmm1.net
Thu Sep 5 21:27:35 EEST 2019


From: Aman Gupta <aman at tmm1.net>

Signed-off-by: Aman Gupta <aman at tmm1.net>
---
 libavcodec/mediacodecdec_common.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/mediacodecdec_common.c b/libavcodec/mediacodecdec_common.c
index b9465244a3..ab8525fb14 100644
--- a/libavcodec/mediacodecdec_common.c
+++ b/libavcodec/mediacodecdec_common.c
@@ -693,6 +693,7 @@ int ff_mediacodec_dec_receive(AVCodecContext *avctx, MediaCodecDecContext *s,
 
         if (info.flags & ff_AMediaCodec_getBufferFlagEndOfStream(codec)) {
             s->eos = 1;
+            return AVERROR_EOF;
         }
 
         if (info.size) {
-- 
2.20.1



More information about the ffmpeg-devel mailing list