This website works better with JavaScript.
Home
Help
Sign In
falkTX
/
FFmpeg
mirror of
https://github.com/falkTX/FFmpeg.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
338
Wiki
Activity
Browse Source
avutil/buffer: Move USE_ATOMICS to thread.h to avoid it becoming out of sync with it
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.5
Michael Niedermayer
10 years ago
parent
32eadfe453
commit
c299b6fd08
2 changed files
with
4 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-2
libavutil/buffer.c
+4
-0
libavutil/thread.h
+ 0
- 2
libavutil/buffer.c
View File
@@ -25,8 +25,6 @@
#include "mem.h"
#include "thread.h"
#define USE_ATOMICS !(HAVE_PTHREADS || HAVE_W32THREADS)
AVBufferRef *av_buffer_create(uint8_t *data, int size,
void (*free)(void *opaque, uint8_t *data),
void *opaque, int flags)
+ 4
- 0
libavutil/thread.h
View File
@@ -26,6 +26,8 @@
#if HAVE_PTHREADS || HAVE_W32THREADS || HAVE_OS2THREADS
#define USE_ATOMICS 0
#if HAVE_PTHREADS
#include <pthread.h>
#elif HAVE_OS2THREADS
@@ -43,6 +45,8 @@
#else
#define USE_ATOMICS 1
#define AVMutex char
#define ff_mutex_init(mutex, attr) (0)
Write
Preview
Loading…
Cancel
Save