mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
libswscale: Memory leak in gst_video_frame_map
https://bugzilla.gnome.org/show_bug.cgi?id=784741
This commit is contained in:
parent
98cf1a7e2d
commit
7c304c0c1e
1 changed files with 3 additions and 1 deletions
|
@ -594,8 +594,10 @@ gst_ffmpegscale_transform (GstBaseTransform * trans, GstBuffer * inbuf,
|
|||
goto invalid_buffer;
|
||||
|
||||
if (!gst_video_frame_map (&out_frame, &scale->out_info, outbuf,
|
||||
GST_MAP_WRITE))
|
||||
GST_MAP_WRITE)) {
|
||||
gst_video_frame_unmap (&in_frame);
|
||||
goto invalid_buffer;
|
||||
}
|
||||
|
||||
sws_scale (scale->ctx, (const guint8 **) in_frame.data, in_frame.info.stride,
|
||||
0, scale->in_info.height, (guint8 **) out_frame.data,
|
||||
|
|
Loading…
Reference in a new issue