avcodec/allcodecs: make avcodec_register_all thread safe
authorMuhammad Faiz <mfcc64@gmail.com>
Tue, 7 Mar 2017 08:51:12 +0000 (15:51 +0700)
committerMuhammad Faiz <mfcc64@gmail.com>
Tue, 7 Mar 2017 13:34:44 +0000 (20:34 +0700)
commite85e8408802dc3a474e6a610867df8e57c768339
treedcfe6623933a91b9f87011932aca9cb850e2c026
parenta6b1180e390925c0ceb78fd223fd18f8c1e39c94
avcodec/allcodecs: make avcodec_register_all thread safe

use ff_thread_once

Suggested-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
libavcodec/allcodecs.c