diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-12-11 22:59:56 +0300 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2017-12-11 23:16:06 +0300 |
commit | fd542b6f2026f1aa163882ee0283958598a97c31 (patch) | |
tree | 560bfe34a23731098015cb890a1919a58aa4df18 /libavcodec/internal.h | |
parent | c7a5e80f569d312c9d2f0dc534e07630eecd5a34 (diff) |
Revert "libavcodec/utils.c: simplify avcodec locking with atomics"
This reverts commit 590136e78da3d091ea99ab5432543d47a559a461.
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.
Diffstat (limited to 'libavcodec/internal.h')
-rw-r--r-- | libavcodec/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/internal.h b/libavcodec/internal.h index 6deaf1d204..30cb9a0de1 100644 --- a/libavcodec/internal.h +++ b/libavcodec/internal.h @@ -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); |