summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2012-11-06 18:09:11 +0100
committerwm4 <wm4@nowhere>2013-01-13 17:39:32 +0100
commit4570a04a17a88c822383b850dc7539ea854860d0 (patch)
tree19c94107dd1a09cf3f191bf683f3c5cc45e69f35 /video
parentf4a95058c70d829624146abd64b9b04d59dbc286 (diff)
downloadmpv-4570a04a17a88c822383b850dc7539ea854860d0.tar.bz2
mpv-4570a04a17a88c822383b850dc7539ea854860d0.tar.xz
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.
Diffstat (limited to 'video')
-rw-r--r--video/out/vo_corevideo.m2
1 files changed, 1 insertions, 1 deletions
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"