Revert "libavcodec/utils.c: simplify avcodec locking with atomics"

This reverts commit 590136e78d.

Atomics are not required for this variable, because it is protected
through the lock manager, and the use of atomics here is not compatible
with the c11 emulation wrappersi.

Fixes FATE on MSVC, among other setups which use the compat wrappers.
This commit is contained in:
Hendrik Leppkes
2017-12-11 20:59:56 +01:00
parent c7a5e80f56
commit fd542b6f20
2 changed files with 7 additions and 6 deletions

View File

@@ -241,6 +241,7 @@ int ff_init_buffer_info(AVCodecContext *s, AVFrame *frame);
void ff_color_frame(AVFrame *frame, const int color[4]);
extern volatile int ff_avcodec_locked;
int ff_lock_avcodec(AVCodecContext *log_ctx, const AVCodec *codec);
int ff_unlock_avcodec(const AVCodec *codec);