summaryrefslogtreecommitdiff
path: root/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
diff options
context:
space:
mode:
authorSimon Farnsworth <simon.farnsworth@onelan.co.uk>2012-09-27 18:05:46 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-10-11 14:58:38 +0200
commitbd11baedc5b7756d7f992f90cfd11ed2176136c1 (patch)
tree0a8a9530171885ad1cab266bcbdce3644d21119b /gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
parent022e99e12796a8a8f0f8dd296522aab2ec0c464e (diff)
downloadgst-vaapi-bd11baedc5b7756d7f992f90cfd11ed2176136c1.tar.gz
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>
Diffstat (limited to 'gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c')
-rw-r--r--gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
index 928c64f0..7b479057 100644
--- a/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
+++ b/gst-libs/gst/vaapi/gstvaapidecoder_mpeg2.c
@@ -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;