summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c7
-rw-r--r--libvo/vo_x11.c5
2 files changed, 7 insertions, 5 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index be0ba00c91..2a3f0366d5 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -1,4 +1,4 @@
-/*
+/*
* video_out_vesa.c
*
* Copyright (C) Nick Kurshev <nickols_k@mail.ru> - Oct 2001
@@ -246,8 +246,9 @@ static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int
printf("vo_vesa: draw_slice was called: w=%u h=%u x=%u y=%u\n",w,h,x,y);
if(vesa_zoom)
{
- SwScale_YV12slice_brg24(image,stride,y,h,
- yuv_buffer,
+ uint8_t *dst[3]= {yuv_buffer, NULL, NULL};
+ SwScale_YV12slice(image,stride,y,h,
+ dst,
image_width*((video_mode_info.BitsPerPixel+7)/8),
image_width, video_mode_info.BitsPerPixel,
scale_xinc, scale_yinc);
diff --git a/libvo/vo_x11.c b/libvo/vo_x11.c
index 8a860b3ba8..aeb61d0fca 100644
--- a/libvo/vo_x11.c
+++ b/libvo/vo_x11.c
@@ -484,8 +484,9 @@ 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, ( depth == 24 ) ? bpp : depth,
+ uint8_t *dst[3] = {ImageData, NULL, NULL};
+ SwScale_YV12slice(src,stride,y,h,
+ dst, 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 );