[2/3,WIP] mpegvideo: fix rv40 threaded decode of clip starting with a bframe

Message ID 1407964439-21283-3-git-send-email-stebbins@jetheaddev.com
State New
Headers show

Commit Message

John Stebbins Aug. 13, 2014, 9:13 p.m.
Do not fail ff_mpeg_update_thread_context if the decoder did not
allocate a picture.  This leaves frame threading in a bad state.
---
 libavcodec/mpegvideo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Patch

diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 540c959..4e7ced8 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1002,7 +1002,8 @@  do {\
         } else {
             av_log(s->avctx, AV_LOG_ERROR, "Context scratch buffers could not "
                    "be allocated due to unknown size.\n");
-            return AVERROR_BUG;
+            // Decoder didn't allocate a picture.  This can be cause by
+            // errors in the data.
         }
 
     // MPEG2/interlacing info