mirror of
https://github.com/mpv-player/mpv
synced 2025-01-31 20:21:49 +00:00
Factor common code out of if in x11_common.c
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23300 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
0b89e7d75e
commit
c445b76647
@ -654,13 +654,12 @@ static int draw_slice(uint8_t * src[], int stride[], int w, int h,
|
||||
{
|
||||
dstStride[0] = -image_width * ((bpp + 7) / 8);
|
||||
dst[0] = ImageData - dstStride[0] * (image_height - 1);
|
||||
sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride);
|
||||
} else
|
||||
{
|
||||
dstStride[0] = image_width * ((bpp + 7) / 8);
|
||||
dst[0] = ImageData;
|
||||
sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride);
|
||||
}
|
||||
sws_scale_ordered(swsContext, src, stride, y, h, dst, dstStride);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user