diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-10-07 21:11:08 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-10-07 21:11:08 +0000 |
commit | caaeefc5917fb625375c46ad2c03c992c234569f (patch) | |
tree | 9c9331f8ec017616fff26b32256b5a0d29a8063a /libavformat/allformats.c | |
parent | 791d8d1d67273e8cf948d816ef9e009581273832 (diff) | |
download | ffmpeg-caaeefc5917fb625375c46ad2c03c992c234569f.tar.gz |
prevent multiple av_register_all()
Originally committed as revision 3570 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/allformats.c')
-rw-r--r-- | libavformat/allformats.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/allformats.c b/libavformat/allformats.c index 30a63fa62c..c2a50221a8 100644 --- a/libavformat/allformats.c +++ b/libavformat/allformats.c @@ -26,6 +26,12 @@ */ void av_register_all(void) { + static int inited = 0; + + if (inited != 0) + return; + inited = 1; + avcodec_init(); avcodec_register_all(); |