mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
mpeg4videoparse: fix aspect-ratio parsing in VO
This commit is contained in:
parent
5b1ed7d42c
commit
5658b2912b
1 changed files with 3 additions and 3 deletions
|
@ -251,10 +251,10 @@ gst_mpeg4vparse_handle_vo (GstMpeg4VParse * parse, const guint8 * data,
|
||||||
goto failed;
|
goto failed;
|
||||||
|
|
||||||
/* check if aspect ratio info is extended par */
|
/* check if aspect ratio info is extended par */
|
||||||
if (bits == 0xff) {
|
if (bits == 0xf) {
|
||||||
GET_BITS (&bs, 4, &bits);
|
GET_BITS (&bs, 8, &bits);
|
||||||
aspect_ratio_width = bits;
|
aspect_ratio_width = bits;
|
||||||
GET_BITS (&bs, 4, &bits);
|
GET_BITS (&bs, 8, &bits);
|
||||||
aspect_ratio_height = bits;
|
aspect_ratio_height = bits;
|
||||||
} else if (bits < 0x6) {
|
} else if (bits < 0x6) {
|
||||||
aspect_ratio_width = aspect_ratio_table[bits][0];
|
aspect_ratio_width = aspect_ratio_table[bits][0];
|
||||||
|
|
Loading…
Reference in a new issue