aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/cljrenc.c
diff options
context:
space:
mode:
authorVivekanand <sendtovivekanand@gmail.com>2016-04-07 16:16:23 +0530
committerMichael Niedermayer <michael@niedermayer.cc>2017-08-23 13:15:16 +0200
commit0f0173554e67bc66273e6d7958766aed1375a006 (patch)
tree4321c39ddec000608b52e0d13813cae73505cf98 /libavcodec/cljrenc.c
parent35613a49cccf1cbb778cd3fcd3154dbe82c26b7b (diff)
downloadffmpeg-0f0173554e67bc66273e6d7958766aed1375a006.tar.gz
avformat/allformats: Making av_register_all() thread-safe.
When multiple threads tries to call av_register_all(), the first thread sets initialized to 1 and do the register process. At the same time, other thread might also call av_register_all(), which returns immediately because initialized is set to 1 (even when it has not completed registering codecs). We can avoid this problem if we set initialised to 1 while exiting from function. Github: Closes #196 (cherry picked from commit b092ee701f4d0ef2b8a4171cd38101d1ee9a1034) Conflicts: libavformat/allformats.c
Diffstat (limited to 'libavcodec/cljrenc.c')
0 files changed, 0 insertions, 0 deletions