summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authormichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-20 23:58:23 +0000
committermichael <michael@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-20 23:58:23 +0000
commit10065d25dbaaf2d414a4c15c8533c30dd3b16f16 (patch)
tree427eddd7bbc0d4cacac7b89d65fde51389caee1b /libvo
parenta4829b4d28f0ec7ea7fc4a626968debf7f4b4ea8 (diff)
downloadmpv-10065d25dbaaf2d414a4c15c8533c30dd3b16f16.tar.bz2
mpv-10065d25dbaaf2d414a4c15c8533c30dd3b16f16.tar.xz
15bpp fix for swscale
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2326 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_x11.c2
1 files changed, 1 insertions, 1 deletions
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 );