diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c index 547d59f46a..8a860b3ba8 100644 --- a/libvo/vo_x11.c +++ b/libvo/vo_x11.c @@ -485,7 +485,7 @@ static uint32_t draw_slice( uint8_t *src[],int stride[],int w,int h,int x,int y 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 );