diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-09-07 19:08:08 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2009-09-07 19:10:18 +0200 |
commit | 5658b2912bc9938fdeefc061840acfef8e0db369 (patch) | |
tree | 4f94a24728263f8c04564f887152a0418584af5c | |
parent | 5b1ed7d42c9569f5a1f38b897debde3815c3dcef (diff) |
mpeg4videoparse: fix aspect-ratio parsing in VO
-rw-r--r-- | gst/mpeg4videoparse/mpeg4videoparse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gst/mpeg4videoparse/mpeg4videoparse.c b/gst/mpeg4videoparse/mpeg4videoparse.c index a93008511..93795d04d 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]; |