Mercurial > mplayer.hg
changeset 2307:1dcf06bfad9b
Bad fix of top rendering with libmpeg2
author | nick |
---|---|
date | Sat, 20 Oct 2001 16:42:17 +0000 |
parents | 42cf51474f45 |
children | ce35271bdb10 |
files | libvo/vo_vesa.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libvo/vo_vesa.c Sat Oct 20 13:11:10 2001 +0000 +++ b/libvo/vo_vesa.c Sat Oct 20 16:42:17 2001 +0000 @@ -247,7 +247,9 @@ } 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 @@ 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");