mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +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;
|
||||
|
||||
/* 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];
|
||||
|
|
Loading…
Reference in a new issue