[MPlayer-dev-eng] [PATCH] vf_spp: fix compiler-error and/or runtime crash

Felix Buenemann atmosfear at users.sourceforge.net
Sun Jan 2 05:49:09 CET 2005


Hi,

I had spp crashing on me for a long time, so now I investigated the prob and 
found a fix. It happens to me that when compiled normally MPlayer would crash 
at runtime when using -vf spp, and when compiling with -g3 it would raise a 
compiler error at vf_spp.c:291 squeaking about a corrupted double linked list 
(or sth. like that ;-).

So it seems my gcc-3.4.2 doesn't like to have to choose wether to use m(emory) 
or r(egister) for it's asm contraint (look at the "rm" (4) at vf_spp.c:291).
I simply replaced "rm" (4) by "r" (4), I could not find a place in gcc docu 
that this syntax is actually allowed, so I just think it slipped through a 
whole of older gcc's parsing that contraint.

Here's the patch, let Michael have a look and apply to cvs if it's fine.

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: spp_gcc342_fix.patch
Type: text/x-diff
Size: 792 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050102/5bea1586/attachment.patch>


More information about the MPlayer-dev-eng mailing list