codecparsers: vc1: fix VOPDQUANT parser for DQUANT == 2.

Fix parsing of VOPDQUANT when DQUANT == 2. In particular, DQUANTFRM is
not present in the bitstream in this case and it shall be derived to
the default value of zero (7.1.1.31.1).

https://bugzilla.gnome.org/show_bug.cgi?id=692271

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Gwenole Beauchesne 2013-01-22 10:48:39 +01:00
parent 73213e273f
commit 93fbcfda23

View file

@ -625,7 +625,7 @@ parse_vopdquant (GstBitReader * br, GstVC1FrameHdr * framehdr, guint8 dquant)
vopdquant->dqbilevel = 0;
if (dquant == 2) {
READ_UINT8 (br, vopdquant->dquantfrm, 1);
vopdquant->dquantfrm = 0;
READ_UINT8 (br, vopdquant->pqdiff, 3);