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
1 changed files with 6 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue