Browse Source

prevent multiple av_register_all()

Originally committed as revision 3570 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 21 years ago
parent
commit
caaeefc591
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      libavformat/allformats.c

+ 6
- 0
libavformat/allformats.c View File

@@ -26,6 +26,12 @@
*/
void av_register_all(void)
{
static int inited = 0;
if (inited != 0)
return;
inited = 1;

avcodec_init();
avcodec_register_all();



Loading…
Cancel
Save