mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
codecparsers: vc1: compute altpquant.
This commit is contained in:
parent
8ca7640663
commit
b181bd8bae
2 changed files with 7 additions and 4 deletions
|
@ -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…
Reference in a new issue