aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-09-10 04:24:53 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-09-10 04:24:53 +0000
commitdc43482b268664686cbeff6c3211b6161bc04fd4 (patch)
tree4fd59432d1ecb04d8084214e9a5f4ccb69022c90
parentd120e4026d685fd770ac211191d72757b112a556 (diff)
downloadffmpeg-dc43482b268664686cbeff6c3211b6161bc04fd4.tar.gz
Disable B-frames decoding until they produce correct picture
Originally committed as revision 6218 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/vc1.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c
index a485384242..f5b9a4088a 100644
--- a/libavcodec/vc1.c
+++ b/libavcodec/vc1.c
@@ -4180,6 +4180,12 @@ static int vc1_decode_frame(AVCodecContext *avctx,
return -1;
}
+ /* skip B frames as they are not decoded correctly */
+ if(s->pict_type == B_TYPE){
+ av_free(buf2);
+ return buf_size;
+ }
+
// for hurry_up==5
s->current_picture.pict_type= s->pict_type;
s->current_picture.key_frame= s->pict_type == I_TYPE;