diff libvo/vo_x11.c @ 2325:50037e53d0bc

15bpp fix for swscale
author michael
date Sat, 20 Oct 2001 23:58:23 +0000
parents 9ee34c6950e0
children 6f3fa9bc3b27
line wrap: on
line diff
--- a/libvo/vo_x11.c	Sat Oct 20 23:57:55 2001 +0000
+++ b/libvo/vo_x11.c	Sat Oct 20 23:58:23 2001 +0000
@@ -485,7 +485,7 @@
 
 if(scale_xinc){
  SwScale_YV12slice_brg24(src,stride,y,h,
-                         ImageData, image_width*((bpp+7)/8), image_width, bpp,
+                         ImageData, image_width*((bpp+7)/8), image_width, ( depth == 24 ) ? bpp : depth,
 			 scale_xinc, scale_yinc);
 } else {
  uint8_t *dst=ImageData + ( image_width * y + x ) * ( bpp/8 );