codecparsers: vc1: fix calculation of ALTPQUANT.

Fix calculation of ALTPQUANT when DQUANT == 1. PQDIFF alters ALTPQUANT
in any case. See 7.1.1.31.6.

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

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

View file

@ -659,8 +659,12 @@ parse_vopdquant (GstBitReader * br, GstVC1FrameHdr * framehdr, guint8 dquant)
{ {
READ_UINT8 (br, vopdquant->pqdiff, 3); READ_UINT8 (br, vopdquant->pqdiff, 3);
if (vopdquant->pqdiff == 7) if (vopdquant->pqdiff != 7)
vopdquant->altpquant = framehdr->pquant + vopdquant->pqdiff + 1;
else {
READ_UINT8 (br, vopdquant->abspq, 5); READ_UINT8 (br, vopdquant->abspq, 5);
vopdquant->altpquant = vopdquant->abspq;
}
} }
} }
} }