Commit 3d3b4c05 authored by michael's avatar michael

prevent multiple av_register_all()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3570 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent cc0d625d
......@@ -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