bayer2rgb: Read stride from the video info
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 6 Aug 2015 22:04:58 +0000 (18:04 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Thu, 6 Aug 2015 22:04:58 +0000 (18:04 -0400)
gst/bayer/gstbayer2rgb.c

index edeb6bf26f3d46e6086b5cc9811c5363b0a402b8..e159ca2c24bc0f4ed6b393b292fb0752d15544d3 100644 (file)
@@ -472,7 +472,7 @@ gst_bayer2rgb_transform (GstBaseTransform * base, GstBuffer * inbuf,
   }
 
   output = GST_VIDEO_FRAME_PLANE_DATA (&frame, 0);
-  gst_bayer2rgb_process (filter, output, filter->width * 4,
+  gst_bayer2rgb_process (filter, output, frame.info.stride[0],
       map.data, filter->width);
 
   gst_video_frame_unmap (&frame);