diff options
author | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-29 19:56:31 +0000 |
---|---|---|
committer | rfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2003-03-29 19:56:31 +0000 |
commit | 63dd151a4c888df649192625a8868e37a6ee9543 (patch) | |
tree | 3a991af0b33af4681b678039126884629d3a3e87 | |
parent | 22e6e9baf76b2a97cac83496094011ae41722c2a (diff) | |
download | mpv-63dd151a4c888df649192625a8868e37a6ee9543.tar.bz2 mpv-63dd151a4c888df649192625a8868e37a6ee9543.tar.xz |
100l to Gabu, this caused divide-by-zero with -vo mga. Apparently
someone only tested -vo xmga. Feel free to reenable if you can fix the
sigfpe properly.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9728 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libvo/mga_common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libvo/mga_common.c b/libvo/mga_common.c index df710fc616..558818ded6 100644 --- a/libvo/mga_common.c +++ b/libvo/mga_common.c @@ -27,7 +27,7 @@ static uint32_t drwcX,drwcY,dwidth,dheight; static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned char *srca, int stride){ uint32_t bespitch = (mga_vid_config.src_width + 31) & ~31; - x0+=mga_vid_config.src_width*(vo_panscan_x>>1)/(vo_dwidth+vo_panscan_x); +// x0+=mga_vid_config.src_width*(vo_panscan_x>>1)/(vo_dwidth+vo_panscan_x); switch(mga_vid_config.format){ case MGA_VID_FORMAT_YV12: case MGA_VID_FORMAT_IYUV: @@ -45,7 +45,8 @@ static void draw_alpha(int x0,int y0, int w,int h, unsigned char* src, unsigned static void draw_osd(void) { - vo_draw_text(mga_vid_config.src_width-mga_vid_config.src_width*vo_panscan_x/(vo_dwidth+vo_panscan_x),mga_vid_config.src_height,draw_alpha); + vo_draw_text(mga_vid_config.src_width,mga_vid_config.src_height,draw_alpha); +// vo_draw_text(mga_vid_config.src_width-mga_vid_config.src_width*vo_panscan_x/(vo_dwidth+vo_panscan_x),mga_vid_config.src_height,draw_alpha); } |