changeset 2325:50037e53d0bc

15bpp fix for swscale
author michael
date Sat, 20 Oct 2001 23:58:23 +0000
parents 0e4210657f0e
children 7d3542955132
files libvo/vo_x11.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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 );