1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-19 05:15:12 +00:00

handle width*bpp!=stride

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5597 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-04-13 14:24:33 +00:00
parent 96307ecb7f
commit c07dc11db3

View File

@ -52,7 +52,7 @@ static void put_image(struct vf_instance_s* vf, mp_image_t *mpi){
MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_STRIDE,
mpi->w, mpi->h);
if(mpi->stride[0]!=dmpi->stride[0]){
if(mpi->stride[0]!=dmpi->stride[0] || mpi->stride[0]!=mpi->w*(mpi->bpp/8)){
int y;
unsigned char* src=mpi->planes[0];
unsigned char* dst=dmpi->planes[0];