mirror of https://github.com/mpv-player/mpv
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.
This commit is contained in:
parent
f4a95058c7
commit
4570a04a17
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue