summaryrefslogtreecommitdiffstats
path: root/libavcodec/vc1dec.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2012-09-23 13:52:52 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-20 00:07:43 +0200
commit33f2a4942380184f3a28cbf2a36366c8ed105232 (patch)
tree3e850813587848a5be98d4e5db9a0127bec1a0e4 /libavcodec/vc1dec.c
parentb87ff3449662e4f6b8415471dd4b7c76f06fbcda (diff)
downloadffmpeg-streaming-33f2a4942380184f3a28cbf2a36366c8ed105232.zip
ffmpeg-streaming-33f2a4942380184f3a28cbf2a36366c8ed105232.tar.gz
vc1: only disable interlaced b-frames for software decoding
Tested-by: Gwenole Beauchesne <gb.devel@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vc1dec.c')
-rw-r--r--libavcodec/vc1dec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/vc1dec.c b/libavcodec/vc1dec.c
index 3832b2a..fde1dda 100644
--- a/libavcodec/vc1dec.c
+++ b/libavcodec/vc1dec.c
@@ -5603,6 +5603,9 @@ static int vc1_decode_frame(AVCodecContext *avctx, void *data,
goto err;
}
} else {
+ if (v->fcm == ILACE_FRAME && s->pict_type == AV_PICTURE_TYPE_B)
+ goto err; // This codepath is still incomplete thus it is disabled
+
ff_er_frame_start(s);
v->bits = buf_size * 8;
OpenPOWER on IntegriCloud