diff options
author | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-02 18:10:20 +0000 |
---|---|---|
committer | nick <nick@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2001-11-02 18:10:20 +0000 |
commit | 846d5e18a57b026606d3830988578585adcc918b (patch) | |
tree | aefd889b4cecf21e7cfdd258a8ed0142d55f7727 /libvo/vo_vesa.c | |
parent | c890da19bbdb3de77152947f014de0005fb49d68 (diff) | |
download | mpv-846d5e18a57b026606d3830988578585adcc918b.tar.bz2 mpv-846d5e18a57b026606d3830988578585adcc918b.tar.xz |
Fixed bug of -vc libmpeg2 on vesa:dga
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2637 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libvo/vo_vesa.c')
-rw-r--r-- | libvo/vo_vesa.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/vo_vesa.c b/libvo/vo_vesa.c index b45e9f8013..4b92ed43ed 100644 --- a/libvo/vo_vesa.c +++ b/libvo/vo_vesa.c @@ -246,8 +246,9 @@ static uint32_t draw_slice(uint8_t *image[], int stride[], int w,int h,int x,int int rgb_stride; yuv_slice=dga_buffer; if(HAS_DGA()) yuv_slice += y_offset*SCREEN_LINE_SIZE(PIXEL_SIZE())+x_offset*PIXEL_SIZE(); - rgb_stride = PIXEL_SIZE()*(HAS_DGA()?video_mode_info.XResolution:image_width); - yuv_slice+=(image_width*y+x)*PIXEL_SIZE(); + rgb_stride = HAS_DGA()?video_mode_info.XResolution:image_width; + yuv_slice+=(rgb_stride*y+x)*PIXEL_SIZE(); + rgb_stride *= PIXEL_SIZE(); yuv2rgb(yuv_slice, image[0], image[1], image[2], w, h, rgb_stride, stride[0], stride[1]); } |