From 5658b2912bc9938fdeefc061840acfef8e0db369 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 7 Sep 2009 19:08:08 +0200 Subject: [PATCH] mpeg4videoparse: fix aspect-ratio parsing in VO --- gst/mpeg4videoparse/mpeg4videoparse.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gst/mpeg4videoparse/mpeg4videoparse.c b/gst/mpeg4videoparse/mpeg4videoparse.c index a93008511a..93795d04d2 100644 --- a/gst/mpeg4videoparse/mpeg4videoparse.c +++ b/gst/mpeg4videoparse/mpeg4videoparse.c @@ -251,10 +251,10 @@ gst_mpeg4vparse_handle_vo (GstMpeg4VParse * parse, const guint8 * data, goto failed; /* check if aspect ratio info is extended par */ - if (bits == 0xff) { - GET_BITS (&bs, 4, &bits); + if (bits == 0xf) { + GET_BITS (&bs, 8, &bits); aspect_ratio_width = bits; - GET_BITS (&bs, 4, &bits); + GET_BITS (&bs, 8, &bits); aspect_ratio_height = bits; } else if (bits < 0x6) { aspect_ratio_width = aspect_ratio_table[bits][0];