[FFmpeg-devel] fix SDL device on MacOS

Nicolas George george at nsup.org
Tue Jan 14 23:23:31 CET 2014

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.


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140114/2bfea5a6/attachment.asc>

More information about the ffmpeg-devel mailing list