From 93fbcfda238fc992793602b582824af2edd48bfb Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 22 Jan 2013 10:48:39 +0100 Subject: [PATCH] codecparsers: vc1: fix VOPDQUANT parser for DQUANT == 2. Fix parsing of VOPDQUANT when DQUANT == 2. In particular, DQUANTFRM is not present in the bitstream in this case and it shall be derived to the default value of zero (7.1.1.31.1). https://bugzilla.gnome.org/show_bug.cgi?id=692271 Signed-off-by: Gwenole Beauchesne --- gst-libs/gst/codecparsers/gstvc1parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst-libs/gst/codecparsers/gstvc1parser.c b/gst-libs/gst/codecparsers/gstvc1parser.c index 225a7c0..559f8bc 100644 --- a/gst-libs/gst/codecparsers/gstvc1parser.c +++ b/gst-libs/gst/codecparsers/gstvc1parser.c @@ -625,7 +625,7 @@ parse_vopdquant (GstBitReader * br, GstVC1FrameHdr * framehdr, guint8 dquant) vopdquant->dqbilevel = 0; if (dquant == 2) { - READ_UINT8 (br, vopdquant->dquantfrm, 1); + vopdquant->dquantfrm = 0; READ_UINT8 (br, vopdquant->pqdiff, 3); -- 2.7.4