diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-11-28 01:01:17 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-11-28 01:15:11 +0100 |
commit | f783259fdb37e288643fe54ac162d723b1bec548 (patch) | |
tree | 2c41e78e4ed345fc33e687fa8a89c718d9427217 /libavutil/buffer.c | |
parent | b6691fba77afb0ca6ce6d7ca33fa8285f3c78911 (diff) | |
download | ffmpeg-f783259fdb37e288643fe54ac162d723b1bec548.tar.gz |
avutil/buffer: use the old atomics based code for the release branch
the old code worked fine for a long time and was not affected by
the bug the new code fixes and the new is not widely tested yet.
This can be reverted once the code received more testing in
master
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/buffer.c')
-rw-r--r-- | libavutil/buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavutil/buffer.c b/libavutil/buffer.c index 0f9f1a2992..4e2a94bfe8 100644 --- a/libavutil/buffer.c +++ b/libavutil/buffer.c @@ -25,7 +25,8 @@ #include "mem.h" #include "thread.h" -#define USE_ATOMICS !(HAVE_PTHREADS || HAVE_W32THREADS) +//#define USE_ATOMICS !(HAVE_PTHREADS || HAVE_W32THREADS) +#define USE_ATOMICS 1 // can be changed to the above once it received more testing in master AVBufferRef *av_buffer_create(uint8_t *data, int size, void (*free)(void *opaque, uint8_t *data), |