From c07dc11db3c88fda517c9315166b0cf844b64034 Mon Sep 17 00:00:00 2001 From: arpi Date: Sat, 13 Apr 2002 14:24:33 +0000 Subject: [PATCH] handle width*bpp!=stride git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5597 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vf_rgb2bgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpcodecs/vf_rgb2bgr.c b/libmpcodecs/vf_rgb2bgr.c index 2343c214c3..95b329c872 100644 --- a/libmpcodecs/vf_rgb2bgr.c +++ b/libmpcodecs/vf_rgb2bgr.c @@ -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];