From ea9c52ea8f75ecf43ecbc38ecacd876364aea835 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Thu, 18 Jan 2018 18:51:57 +0100 Subject: [PATCH] vaapipostproc: if no p-a-r in out caps define a range Instead of copying the pixel-aspect-ratio from the sink caps, define an open range for the src caps pixel-aspect-ratio. Later it will be defined. https://bugzilla.gnome.org/show_bug.cgi?id=790149 --- gst/vaapi/gstvaapipostprocutil.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/gst/vaapi/gstvaapipostprocutil.c b/gst/vaapi/gstvaapipostprocutil.c index 9c344b122f..c71a20be64 100644 --- a/gst/vaapi/gstvaapipostprocutil.c +++ b/gst/vaapi/gstvaapipostprocutil.c @@ -160,12 +160,9 @@ _fixate_frame_size (GstVaapiPostproc * postproc, GstVideoInfo * vinfo, ret = TRUE; to_par = gst_structure_get_value (outs, "pixel-aspect-ratio"); if (!to_par) { - g_value_init (&tpar, GST_TYPE_FRACTION); - gst_value_set_fraction (&tpar, GST_VIDEO_INFO_PAR_N (vinfo), - GST_VIDEO_INFO_PAR_D (vinfo)); + g_value_init (&tpar, GST_TYPE_FRACTION_RANGE); + gst_value_set_fraction_range_full (&tpar, 1, G_MAXINT, G_MAXINT, 1); to_par = &tpar; - - gst_structure_set_value (outs, "pixel-aspect-ratio", &tpar); } /* we have both PAR but they might not be fixated */