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:
parent
791d8d1d67
commit
caaeefc591
@ -26,6 +26,12 @@
|
|||||||
*/
|
*/
|
||||||
void av_register_all(void)
|
void av_register_all(void)
|
||||||
{
|
{
|
||||||
|
static int inited = 0;
|
||||||
|
|
||||||
|
if (inited != 0)
|
||||||
|
return;
|
||||||
|
inited = 1;
|
||||||
|
|
||||||
avcodec_init();
|
avcodec_init();
|
||||||
avcodec_register_all();
|
avcodec_register_all();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user