diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-07-26 16:05:44 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2010-07-26 16:05:44 +0200 |
commit | 53318f20ccb3ca639ee6e3f58cfbaf2fa1a51295 (patch) | |
tree | aabb90fd6ca9dfa9f2ea8766cc4001707abdad4f | |
parent | 175aae9e85365f681e73a7bf427a6685e6f4faa1 (diff) |
videorate: Fixate the pixel-aspect-ratio if necessary
-rw-r--r-- | gst/videorate/gstvideorate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/videorate/gstvideorate.c b/gst/videorate/gstvideorate.c index 656bc0b60..8b68dc5ad 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); |