mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
videorate: Fixate the pixel-aspect-ratio if necessary
This commit is contained in:
parent
175aae9e85
commit
53318f20cc
1 changed files with 3 additions and 0 deletions
|
@ -352,6 +352,9 @@ gst_video_rate_setcaps (GstPad * pad, GstCaps * caps)
|
|||
gst_structure_fixate_field_string (structure, "color-matrix", "sdtv");
|
||||
if (gst_structure_has_field (structure, "chroma-site"))
|
||||
gst_structure_fixate_field_string (structure, "chroma-site", "mpeg2");
|
||||
if (gst_structure_has_field (structure, "pixel-aspect-ratio"))
|
||||
gst_structure_fixate_field_nearest_fraction (structure,
|
||||
"pixel-aspect-ratio", 1, 1);
|
||||
|
||||
gst_pad_set_caps (otherpad, caps);
|
||||
gst_caps_unref (caps);
|
||||
|
|
Loading…
Reference in a new issue