video-converter: add extra pixels for the border
authorWim Taymans <wtaymans@redhat.com>
Mon, 3 Nov 2014 15:18:41 +0000 (16:18 +0100)
committerWim Taymans <wtaymans@redhat.com>
Mon, 3 Nov 2014 15:19:25 +0000 (16:19 +0100)
We need extra pixels for the border.

gst-libs/gst/video/video-converter.c

index 24496f5..9245477 100644 (file)
@@ -587,6 +587,7 @@ gst_video_converter_new (GstVideoInfo * in_info, GstVideoInfo * out_info,
 
   convert->lines = out_info->finfo->pack_lines;
   width = MAX (convert->in_maxwidth, convert->out_maxwidth);
+  width += convert->out_x;
   convert->errline = g_malloc0 (sizeof (guint16) * width * 4);
 
   if (convert->fill_border && (convert->out_height < convert->out_maxheight ||