video-frame: fix tiled pixel stride
authorNicolas Dufresne <nicolas.dufresne at collabora.co.uk>
Fri, 3 Jan 2014 21:18:08 +0000 (22:18 +0100)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 13 Jan 2014 15:46:37 +0000 (10:46 -0500)
Pixel stride is per component, not per plane. We get the tile mode from
the pixelstride of the TILE component.

https://bugzilla.gnome.org/show_bug.cgi?id=707361

gst-libs/gst/video/video-frame.c

index cd348f2..99efabe 100644 (file)
@@ -271,7 +271,7 @@ gst_video_frame_copy_plane (GstVideoFrame * dest, const GstVideoFrame * src,
 
     tile_size = 1 << ts;
 
-    mode = finfo->pixel_stride[tidx];
+    mode = finfo->pixel_stride[GST_VIDEO_COMP_TILEINFO];
 
     sx_tiles = sinfo->stride[plane] >> ws;
     sy_tiles = sinfo->stride[tidx];