diff options
author | Nicolas Dufresne <nicolas.dufresne@collabora.com> | 2017-09-24 14:35:01 -0400 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2017-10-19 15:58:48 +0200 |
commit | 11a501e626dc4d246a20ae0659abb020dc8dd30b (patch) | |
tree | e3d8fbe9a9c08c6451b9a05960de771373cc7994 | |
parent | 756b2ab9e108d6251582e5bacd1e3232977ec6db (diff) | |
download | gstreamer-plugins-good-11a501e626dc4d246a20ae0659abb020dc8dd30b.tar.gz |
flvdemux: Only set pixel-aspect-ratio if specified
If it's not specified, we should let the decoder figure it out.
Apparently the code was already in place, all was to make the code
conditional.
https://bugzilla.gnome.org/show_bug.cgi?id=787795
-rw-r--r-- | gst/flv/gstflvdemux.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gst/flv/gstflvdemux.c b/gst/flv/gstflvdemux.c index edda01d36..8a25d5f4d 100644 --- a/gst/flv/gstflvdemux.c +++ b/gst/flv/gstflvdemux.c @@ -1364,8 +1364,10 @@ gst_flv_demux_video_negotiate (GstFlvDemux * demux, guint32 codec_tag) goto beach; } - gst_caps_set_simple (caps, "pixel-aspect-ratio", GST_TYPE_FRACTION, - demux->par_x, demux->par_y, NULL); + if (demux->got_par) { + gst_caps_set_simple (caps, "pixel-aspect-ratio", GST_TYPE_FRACTION, + demux->par_x, demux->par_y, NULL); + } if (G_LIKELY (demux->w)) { gst_caps_set_simple (caps, "width", G_TYPE_INT, demux->w, NULL); |