[MPlayer-dev-eng] [PATCH] Avoid SIGFPE in `libvo'

Vladimír Třebický guru at kebule.cz
Sun Jul 1 10:47:25 CEST 2007


    Hi,

I've just encountered SIGFPE playing video in Firefox using
`mplayerplug-in'. I've discovered that in `libvo/vo_xv.c' in `drawosd()'
function there is:

    vo_draw_text(image_width -
                 image_width * vo_panscan_x / (vo_dwidth + vo_panscan_x),
                 image_height, draw_alpha_fnc);

In my case (playing in Firefox window) the variables were:

    vo_panscan_x = 0;
    vo_dwidth = 0;

which caused SIGFPE, of course. There _could_ be a problem in setting
those variables to zero. Anyway, I've attached patch that checks for
`vo_panscan_x' being zero and avoiding divison by zero.

-- 
V. Trebicky
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: mplayer-draw_osd-sigfpe.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070701/7fdfaf2a/attachment.asc>


More information about the MPlayer-dev-eng mailing list