mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
mxfdemux: Use correct width/height for stride conversions
This commit is contained in:
parent
a31498d8d4
commit
c95ba980b2
1 changed files with 2 additions and 5 deletions
|
@ -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 =
|
||||
|
|
Loading…
Reference in a new issue