1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

prevent multiple av_register_all()

Originally committed as revision 3570 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2004-10-07 21:11:08 +00:00
parent 791d8d1d67
commit caaeefc591

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();