mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
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:
parent
f3698c6289
commit
73213e273f
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue