[Libva] [PATCH] Parse aspect ratio when using GStreamer codec parsers

Gwenole Beauchesne gb.devel at gmail.com
Tue Sep 11 21:36:50 PDT 2012


Hi,

2012/9/10 Simon Farnsworth <simon.farnsworth at onelan.co.uk>:

> +            /* Extended aspect ratio */
> +            else if (adv_hdr->aspect_ratio == 255 )
> +                gst_vaapi_decoder_set_pixel_aspect_ratio(base_decoder,
> +                                                         adv_hdr->aspect_horiz_size,
> +                                                         adv_hdr->aspect_vert_size);

This should be aspect_ratio == 15.
And par_{n,d} should be 1 + aspect_{horiz,vert}_size, according to
6.1.14.3.2 to 6.1.14.3.3. i.e. range of the 8-bit value is 1 to 256.

Regards,
Gwenole.


More information about the Libva mailing list