summaryrefslogtreecommitdiff
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-11-16 16:49:56 +0100
commit3da202fa9f6c287775c4b00dbc7a4773d29dd5d2 (patch)
tree8b36c222b6548d136e0ff6f8e7b3af73892cf6ed
parent0f557857dd5245dc11375609a69fa8d128f6b324 (diff)
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>
-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;