mirror of https://github.com/mpv-player/mpv
15bpp fix for swscale
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2326 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a4829b4d28
commit
10065d25db
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue