diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2013-11-25 14:04:41 +0100 |
---|---|---|
committer | Reinhard Tartler <siretart@tauware.de> | 2014-01-05 16:48:34 -0500 |
commit | 5dcc17992430f4ef910b06956b4d19af98880670 (patch) | |
tree | b92848733ec990614ddcd1c659a728dda366a9cf /libavcodec | |
parent | bdb975ab699a4374e928bc12f1653d079667d84a (diff) | |
download | ffmpeg-5dcc17992430f4ef910b06956b4d19af98880670.tar.gz |
vc1: Reset numref if fieldmode is not set
There are samples in the wild with B-frames and P-frames with different
interlace mode.
CC: libav-stable@libav.org
Reported-by: Jean-Baptiste Kempf <jb@videolan.org>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
(cherry picked from commit de44dfc7c0ec02bda7d846ef713145c890bfae3f)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/vc1.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vc1.c b/libavcodec/vc1.c index a8dd38ad5f..21449bdb6d 100644 --- a/libavcodec/vc1.c +++ b/libavcodec/vc1.c @@ -992,6 +992,8 @@ int ff_vc1_parse_frame_header_adv(VC1Context *v, GetBitContext* gb) v->reffield = get_bits1(gb); v->ref_field_type[0] = v->reffield ^ !v->cur_field_type; } + } else { + v->numref = 0; } if (v->extended_mv) v->mvrange = get_unary(gb, 0, 3); |