[gst-cvs] gst-plugins-bad: mxfdemux: Use correct width/height for stride conversions

Sebastian Dröge slomo at kemper.freedesktop.org
Thu Mar 26 00:20:16 PDT 2009


Module: gst-plugins-bad
Branch: master
Commit: c95ba980b2511c9bfc95ed2970c3d8b817e57aeb
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=c95ba980b2511c9bfc95ed2970c3d8b817e57aeb

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Mon Mar 16 17:22:22 2009 +0100

mxfdemux: Use correct width/height for stride conversions

---

 gst/mxf/mxfup.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/gst/mxf/mxfup.c b/gst/mxf/mxfup.c
index 35ad622..3770c7d 100644
--- a/gst/mxf/mxfup.c
+++ b/gst/mxf/mxfup.c
@@ -205,14 +205,11 @@ mxf_up_rgba_create_caps (MXFMetadataTimelineTrack * track,
 
   if (caps) {
     MXFUPMappingData *data = g_new0 (MXFUPMappingData, 1);
-    GstStructure *s;
 
     mxf_metadata_generic_picture_essence_descriptor_set_caps (&d->parent, caps);
 
-    s = gst_caps_get_structure (caps, 0);
-    gst_structure_get_int (s, "width", &data->width);
-    gst_structure_get_int (s, "height", &data->height);
-
+    data->width = d->parent.stored_width;
+    data->height = d->parent.stored_height;
     data->fourcc = fourcc;
     data->bpp = bpp;
     data->image_start_offset =





More information about the Gstreamer-commits mailing list