codecparsers: vc1: compute altpquant.

This commit is contained in:
Gwenole Beauchesne 2011-10-03 11:14:25 +02:00 committed by Thibault Saunier
parent 8ca7640663
commit b181bd8bae
2 changed files with 7 additions and 4 deletions

View file

@ -493,11 +493,12 @@ parse_vopdquant (GstBitReader * br, GstVC1FrameHdr * framehdr, guint8 dquant)
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);
else
vopdquant->abspq = framehdr->pquant + vopdquant->pqdiff + 1;
vopdquant->altpquant = vopdquant->abspq;
}
} else {
READ_UINT8 (br, vopdquant->dquantfrm, 1);
GST_DEBUG (" %u DquantFrm %u", gst_bit_reader_get_pos (br),

View file

@ -379,6 +379,8 @@ struct _GstVC1VopDquant
guint8 pqdiff;
guint8 abspq;
/* Computed */
guint8 altpquant;
/* if dqant != 2*/
guint8 dquantfrm;