From 53318f20ccb3ca639ee6e3f58cfbaf2fa1a51295 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 26 Jul 2010 16:05:44 +0200 Subject: [PATCH] videorate: Fixate the pixel-aspect-ratio if necessary --- gst/videorate/gstvideorate.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 656bc0b..8b68dc5 100644 --- a/gst/videorate/gstvideorate.c +++ b/gst/videorate/gstvideorate.c @@ -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); -- 2.7.4