Browse Source

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>
tags/n2.2-rc1
Kostya Shishkov Luca Barbato 12 years ago
parent
commit
de44dfc7c0
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/vc1.c

+ 2
- 0
libavcodec/vc1.c View File

@@ -1005,6 +1005,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);


Loading…
Cancel
Save