mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
smpte: fix copy/paste error causing unmap on wrong buffer
Coverity 1139647
This commit is contained in:
parent
1d7735b1d6
commit
42298f65e8
1 changed files with 1 additions and 1 deletions
|
@ -504,7 +504,7 @@ gst_smpte_collected (GstCollectPads * pads, GstSMPTE * smpte)
|
||||||
in2 = gst_buffer_new_and_alloc (I420_SIZE (smpte->width, smpte->height));
|
in2 = gst_buffer_new_and_alloc (I420_SIZE (smpte->width, smpte->height));
|
||||||
gst_buffer_map (in2, &map, GST_MAP_WRITE);
|
gst_buffer_map (in2, &map, GST_MAP_WRITE);
|
||||||
fill_i420 (map.data, smpte->width, smpte->height, 0);
|
fill_i420 (map.data, smpte->width, smpte->height, 0);
|
||||||
gst_buffer_unmap (in1, &map);
|
gst_buffer_unmap (in2, &map);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (GST_VIDEO_INFO_WIDTH (&smpte->vinfo1) !=
|
if (GST_VIDEO_INFO_WIDTH (&smpte->vinfo1) !=
|
||||||
|
|
Loading…
Reference in a new issue