OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eaa5882
)
avutil/atomic: use av_assert0()
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 20 Mar 2013 12:02:27 +0000
(13:02 +0100)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 20 Mar 2013 12:45:30 +0000
(13:45 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavutil/atomic.c
patch
|
blob
|
history
diff --git
a/libavutil/atomic.c
b/libavutil/atomic.c
index
7a701e1
..
0780d8a
100644
(file)
--- a/
libavutil/atomic.c
+++ b/
libavutil/atomic.c
@@
-105,7
+105,7
@@
void *avpriv_atomic_ptr_cas(void * volatile *ptr, void *oldval, void *newval)
#endif /* !HAVE_MEMORYBARRIER && !HAVE_SYNC_VAL_COMPARE_AND_SWAP && !HAVE_MACHINE_RW_BARRIER */
#ifdef TEST
-#include
<assert.h>
+#include
"avassert.h"
int main(void)
{
@@
-113,10
+113,10
@@
int main(void)
int res;
res = avpriv_atomic_int_add_and_fetch(&val, 1);
- a
ssert
(res == 2);
+ a
v_assert0
(res == 2);
avpriv_atomic_int_set(&val, 3);
res = avpriv_atomic_int_get(&val);
- a
ssert
(res == 3);
+ a
v_assert0
(res == 3);
return 0;
}