[FFmpeg-devel] [PATCH] Fix hang with multithreaded VP8 decoded.

Reimar Döffinger Reimar.Doeffinger at gmx.de
Sun Dec 11 16:06:25 CET 2011


This happens when the first frames are not a keyframes.
Sample might become available at samples/nsv/vp8.nsv

Signed-off-by: Reimar Döffinger <Reimar.Doeffinger at gmx.de>
---
 libavcodec/vp8.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vp8.c b/libavcodec/vp8.c
index 8cf67ba..bacd2ec 100644
--- a/libavcodec/vp8.c
+++ b/libavcodec/vp8.c
@@ -1648,6 +1648,7 @@ static int vp8_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
                          !s->framep[VP56_FRAME_GOLDEN] ||
                          !s->framep[VP56_FRAME_GOLDEN2])) {
         av_log(avctx, AV_LOG_WARNING, "Discarding interframe without a prior keyframe!\n");
+        ff_thread_report_progress(curframe, INT_MAX, 0);
         return AVERROR_INVALIDDATA;
     }
 
-- 
1.7.7.3



More information about the ffmpeg-devel mailing list