mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
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
This commit is contained in:
parent
f3650381c3
commit
ea9c52ea8f
1 changed files with 2 additions and 5 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue