From f3698c62897bcbd5b7ae4c86a401d5220d95b70e Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Tue, 22 Jan 2013 10:11:34 +0100 Subject: [PATCH] codecparsers: vc1: fix parser for DQPROFILE in VOPDQUANT. Fix parse_vopdquant() to correctly parse DQPROFILE, which is 2 bits instead of a single bit. https://bugzilla.gnome.org/show_bug.cgi?id=692267 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 3c2640e..557cc06 100644 --- a/gst-libs/gst/codecparsers/gstvc1parser.c +++ b/gst-libs/gst/codecparsers/gstvc1parser.c @@ -641,7 +641,7 @@ parse_vopdquant (GstBitReader * br, GstVC1FrameHdr * framehdr, guint8 dquant) vopdquant->dquantfrm); if (vopdquant->dquantfrm) { - READ_UINT8 (br, vopdquant->dqprofile, 1); + READ_UINT8 (br, vopdquant->dqprofile, 2); switch (vopdquant->dqprofile) { case GST_VC1_DQPROFILE_SINGLE_EDGE: -- 2.7.4