On Sat, 26 Nov 2011, Kostya Shishkov wrote:

On Sat, Nov 26, 2011 at 11:55:24AM +0600, Mashiat Sarker Shakkhar wrote:
From: Michael Niedermayer <[email protected]>

Author:    Michael Niedermayer <[email protected]>
---
 libavcodec/vc1dec.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 81a9ca8..8dd34ea 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5716,6 +5716,8 @@ static int vc1_decode_frame(AVCodecContext *avctx, void 
*data,
 //av_log(s->avctx, AV_LOG_INFO, "Consumed %i/%i bits\n", get_bits_count(&s->gb), 
s->gb.size_in_bits);
 //  if (get_bits_count(&s->gb) > buf_size * 8)
 //      return -1;
+        if(s->error_occurred & s->pict_type == AV_PICTURE_TYPE_B)
+            goto err;
         ff_er_frame_end(s);
     }

--

makes me wonder why

This probably should be && instead of &. This was fixed in a separate commit later on the ffmpeg side, but should be squashed in when cherrypicking.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to