changeset 5596:70e88ec799b4

handle width*bpp!=stride
author arpi
date Sat, 13 Apr 2002 14:24:33 +0000
parents 979dd8764fa6
children e9ceb08cc007
files libmpcodecs/vf_rgb2bgr.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vf_rgb2bgr.c	Sat Apr 13 14:21:52 2002 +0000
+++ b/libmpcodecs/vf_rgb2bgr.c	Sat Apr 13 14:24:33 2002 +0000
@@ -52,7 +52,7 @@
 	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];