Re: Bug#498216: ffmpeg, mplayer (mipsel/loongson2f) stops with the error message "Segmentation fault." and fix patch
Fabian Greffrath <firstname.lastname@example.org> writes:
> But then the code in allcodecs.c look rather senseless to me. Why should
> you test 'if (inited)' when you've just set it yourself to 0 by
> initializing it?
In order to ensure that no matter how often that function is called, the
code below that if is executed exatly once. Think Singleton-Pattern.
Reinhard Tartler, KeyID 945348A4