video-frame: fix tiled pixel stride

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
This commit is contained in:
Nicolas Dufresne 2014-01-03 22:18:08 +01:00 committed by Nicolas Dufresne
parent 61cbdf379b
commit 53605e35f4

View 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];