[FFmpeg-devel] fix SDL device on MacOS

Michael Niedermayer michaelni at gmx.at
Wed Jan 29 04:49:55 CET 2014

On Tue, Jan 14, 2014 at 11:23:31PM +0100, Nicolas George wrote:
> Le quintidi 25 nivôse, an CCXXII, Lukasz M a écrit :
> > I found solution here:
> > http://forums.libsdl.org/viewtopic.php?p=26230&sid=6ba7f9f0e12717d9ded502bf89dc5be2
> > 
> > "I think the problem is that main is declared before SDL.h is included, you
> > should include SDL before main so that SDL substitutes main() with
> > SDL_main() and does it's internal initializations. You should also link
> > with SDLmain."
> > It solves the problem.
> That means SDL will work from ffmpeg, the command-line tool, but not from
> any other application built around lavd. I hope there is a better solution.

so what should we do about this patch ?
should i apply it or not ?

Iam no SDL guru so i am not in a position to decide if theres a better
solution ...

mplayer also seems to have some similar code in mplayer.c


Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

DNS cache poisoning attacks, popular search engine, Google internet authority
dont be evil, please
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140129/afca9fc3/attachment.asc>

More information about the ffmpeg-devel mailing list