summaryrefslogtreecommitdiffstats
path: root/libvo
diff options
context:
space:
mode:
authornick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-20 16:42:17 +0000
committernick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-10-20 16:42:17 +0000
commitcf3b6fcafe23c228c129cda397bb19a3b1ace733 (patch)
tree5cb8ea925ef7c37ac29989022b96078cce0344d5 /libvo
parentd3c0ee86a59e7f0f79e268c649ab6be0d8c9b282 (diff)
downloadmpv-cf3b6fcafe23c228c129cda397bb19a3b1ace733.tar.bz2
mpv-cf3b6fcafe23c228c129cda397bb19a3b1ace733.tar.xz
Bad fix of top rendering with libmpeg2
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2308 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo')
-rw-r--r--libvo/vo_vesa.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c
index 5f5020d066..c2c643dd96 100644
--- a/libvo/vo_vesa.c
+++ b/libvo/vo_vesa.c
@@ -247,7 +247,9 @@ static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int
}
else
{
- yuv2rgb(yuv_buffer, image[0], image[1], image[2], w, h,
+ uint8_t *yuv_slice;
+ yuv_slice=yuv_buffer+(image_width*y+x)*(video_mode_info.BitsPerPixel+7)/8;
+ yuv2rgb(yuv_slice, image[0], image[1], image[2], w, h,
image_width * ((video_mode_info.BitsPerPixel+7)/8),
stride[0], stride[1]);
}
@@ -353,6 +355,7 @@ init(uint32_t width, uint32_t height, uint32_t d_width, uint32_t d_height, uint3
int err;
image_width = width;
image_height = height;
+printf("subdevice: %s\n",vo_subdevice);
if(fullscreen & (0x1|0x8))
{
printf("vo_vesa: switches: -fs, -flip are not supported\n");