avformat/format: Fix registering a format more than once and related races
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 7 Apr 2016 15:26:56 +0000 (17:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Aug 2016 18:25:13 +0000 (20:25 +0200)
commit4a0b0cffc15ae8db0e28a0733bcb065c2c477960
treedb8c58e2c2539108400cdcb9a1fb2eba6ff60009
parent9fefd76eec2068624dc3d6a051a897e19a1aee59
avformat/format: Fix registering a format more than once and related races

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 4cc896ea5f06f8b1ebcde6d876d9c5b59ef9a016)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/format.c