summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-01-22 10:48:39 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2013-01-22 11:20:06 +0100
commit93fbcfda238fc992793602b582824af2edd48bfb (patch)
tree02033cda3a1794871b466a373cc959a13621532f /gst-libs
parent73213e273f04389660d8ab9b5ae88743d3a1e55c (diff)
downloadgstreamer-plugins-bad-93fbcfda238fc992793602b582824af2edd48bfb.tar.gz
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 <gwenole.beauchesne@intel.com>
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/codecparsers/gstvc1parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst-libs/gst/codecparsers/gstvc1parser.c b/gst-libs/gst/codecparsers/gstvc1parser.c
index 225a7c0ee..559f8bc71 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);