diff options
Diffstat (limited to 'gst-libs/gst/video')
-rw-r--r-- | gst-libs/gst/video/video-blend.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst-libs/gst/video/video-blend.c b/gst-libs/gst/video/video-blend.c index 581618354..cd059a4c8 100644 --- a/gst-libs/gst/video/video-blend.c +++ b/gst-libs/gst/video/video-blend.c @@ -164,11 +164,13 @@ gst_video_blend_scale_linear_RGBA (GstVideoInfo * src, GstBuffer * src_buffer, guint dest_stride; guint src_stride; guint8 *dest_pixels; - guint8 *tmpbuf = g_malloc (dest_width * 8 * 4); + guint8 *tmpbuf; GstVideoFrame src_frame, dest_frame; g_return_if_fail (dest_buffer != NULL); + tmpbuf = g_malloc (dest_width * 8 * 4); + gst_video_info_init (dest); gst_video_info_set_format (dest, GST_VIDEO_INFO_FORMAT (src), dest_width, dest_height); |