Commit caaeefc5 authored by Michael Niedermayer's avatar Michael Niedermayer

prevent multiple av_register_all()

Originally committed as revision 3570 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 791d8d1d
......@@ -26,6 +26,12 @@
*/
void av_register_all(void)
{
static int inited = 0;
if (inited != 0)
return;
inited = 1;
avcodec_init();
avcodec_register_all();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment