[FFmpeg-devel] fix SDL device on MacOS

Lukasz M lukasz.m.luki at gmail.com
Wed Jan 29 10:30:29 CET 2014


On 29 January 2014 04:49, Michael Niedermayer <michaelni at gmx.at> wrote:

> 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
>

I not a guru neither. I wanted to get back to it but
1. not in short time
2. Can't promise there is better/any other solution


More information about the ffmpeg-devel mailing list