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
@ -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…
x
Reference in New Issue
Block a user