diff options
author | Jan Schmidt <thaytan@mad.scientist.com> | 2005-11-28 15:13:22 +0000 |
---|---|---|
committer | Jan Schmidt <thaytan@mad.scientist.com> | 2005-11-28 15:13:22 +0000 |
commit | 96d5f727fea40bf8bcc9065a5eaea3a2668bfd6a (patch) | |
tree | 46ce8135fb67f7efcd26e0767a75bb5190932f6b | |
parent | bad1f0307a7e46cf016d21c3aa8e6423e35cb058 (diff) |
gst/matroska/matroska-mux.c: Look for pixel-aspect-ratio in caps, not pixel_width and pixel_height (Fixes: #322645)
Original commit message from CVS:
* gst/matroska/matroska-mux.c:
(gst_matroska_mux_video_pad_setcaps):
Look for pixel-aspect-ratio in caps, not pixel_width and
pixel_height (Fixes: #322645)
-rw-r--r-- | ChangeLog | 7 | ||||
m--------- | common | 0 | ||||
-rw-r--r-- | gst/matroska/matroska-mux.c | 6 |
3 files changed, 9 insertions, 4 deletions
@@ -2,6 +2,13 @@ * gst/matroska/matroska-mux.c: (gst_matroska_mux_video_pad_setcaps): + Look for pixel-aspect-ratio in caps, not pixel_width and + pixel_height (Fixes: #322645) + +2005-11-28 Jan Schmidt <thaytan@mad.scientist.com> + + * gst/matroska/matroska-mux.c: + (gst_matroska_mux_video_pad_setcaps): From Michal Benes: frame duration should be GST_SECOND / framerate, not GST_SECOND * framerate. (Fixes: #322643) diff --git a/common b/common -Subproject c04ad83a0c184fcd311de39371570b9e773a60d +Subproject b0b08bcd66ca385364b6f90663585b09693aec6 diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index 4de8b1b2..709840d8 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -426,7 +426,6 @@ gst_matroska_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps) gint width, height, pixel_width, pixel_height; const GValue *framerate; GstStructure *structure; - gboolean ret; /* find context */ collect_pad = (GstMatroskaPad *) gst_pad_get_element_private (pad); @@ -454,9 +453,8 @@ gst_matroska_mux_video_pad_setcaps (GstPad * pad, GstCaps * caps) gst_value_get_fraction_denominator (framerate), gst_value_get_fraction_numerator (framerate)); - ret = gst_structure_get_int (structure, "pixel_width", &pixel_width); - ret &= gst_structure_get_int (structure, "pixel_height", &pixel_height); - if (ret) { + if (gst_structure_get_fraction (structure, "pixel-aspect-ratio", + &pixel_width, &pixel_height)) { if (pixel_width > pixel_height) { videocontext->display_width = width * pixel_width / pixel_height; videocontext->display_height = height; |