From 4570a04a17a88c822383b850dc7539ea854860d0 Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 6 Nov 2012 18:09:11 +0100 Subject: vo_corevideo: use stride The code was entirely correct, as the VO doesn't report VFCAP_ACCEPT_STRIDE in query_format. Add stride capability in preparation for changing the video chain: soon all VOs will have to support arbitrary strides. --- video/out/vo_corevideo.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'video') diff --git a/video/out/vo_corevideo.m b/video/out/vo_corevideo.m index 8c4b021e20..5e1ecf25a7 100644 --- a/video/out/vo_corevideo.m +++ b/video/out/vo_corevideo.m @@ -232,7 +232,7 @@ static void draw_image(struct vo *vo, mp_image_t *mpi) " texture Cache(%d)\n", error); error = CVPixelBufferCreateWithBytes(NULL, mpi->width, mpi->height, - p->pixelFormat, mpi->planes[0], mpi->width * mpi->bpp / 8, + p->pixelFormat, mpi->planes[0], mpi->stride[0], NULL, NULL, NULL, &p->pixelBuffer); if(error != kCVReturnSuccess) mp_msg(MSGT_VO, MSGL_ERR,"[vo_corevideo] Failed to create Pixel" -- cgit v1.2.3