mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
mpeg2: use pixel-aspec-ratio information from bitstream parser.
Signed-off-by: Simon Farnsworth <simon.farnsworth@onelan.co.uk> Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
parent
022e99e127
commit
bd11baedc5
1 changed files with 6 additions and 0 deletions
|
@ -519,6 +519,12 @@ decode_sequence(GstVaapiDecoderMpeg2 *decoder, guchar *buf, guint buf_size)
|
|||
pts_set_framerate(&priv->tsg, priv->fps_n, priv->fps_d);
|
||||
gst_vaapi_decoder_set_framerate(base_decoder, priv->fps_n, priv->fps_d);
|
||||
|
||||
gst_vaapi_decoder_set_pixel_aspect_ratio(
|
||||
base_decoder,
|
||||
seq_hdr->par_w,
|
||||
seq_hdr->par_h
|
||||
);
|
||||
|
||||
priv->width = seq_hdr->width;
|
||||
priv->height = seq_hdr->height;
|
||||
priv->has_seq_ext = FALSE;
|
||||
|
|
Loading…
Reference in a new issue