libswscale: Memory leak in gst_video_frame_map

https://bugzilla.gnome.org/show_bug.cgi?id=784741
This commit is contained in:
Satya Prakash Gupta 2017-07-11 13:45:35 +05:30 committed by Sebastian Dröge
parent 98cf1a7e2d
commit 7c304c0c1e

View file

@ -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,