[FFmpeg-devel] [PATCH 1/2] ffprobe: decode_video2 returning 0 means full packet.

Nicolas George nicolas.george at normalesup.org
Tue Jul 24 16:01:34 CEST 2012


Fix a hang with alg-mm/ibmlogo.mm from FATE.

Signed-off-by: Nicolas George <nicolas.george at normalesup.org>
---
 ffprobe.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/ffprobe.c b/ffprobe.c
index 5b70348..9de0d59 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -1665,6 +1665,8 @@ static av_always_inline int get_decoded_frame(AVFormatContext *fmt_ctx,
         switch (dec_ctx->codec_type) {
         case AVMEDIA_TYPE_VIDEO:
             ret = avcodec_decode_video2(dec_ctx, frame, got_frame, pkt);
+            if (!ret)
+                ret = pkt->size;
             break;
 
         case AVMEDIA_TYPE_AUDIO:
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list