codecparsers: vc1: compute altpquant.
This commit is contained in:
parent
8ca7640663
commit
b181bd8bae
@ -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),
|
||||
|
@ -379,6 +379,8 @@ struct _GstVC1VopDquant
|
||||
guint8 pqdiff;
|
||||
guint8 abspq;
|
||||
|
||||
/* Computed */
|
||||
guint8 altpquant;
|
||||
|
||||
/* if dqant != 2*/
|
||||
guint8 dquantfrm;
|
||||
|
Loading…
x
Reference in New Issue
Block a user