[FFmpeg-cvslog] avutil/atomic: use av_assert0()

Michael Niedermayer git at videolan.org
Wed Mar 20 13:50:09 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Mar 20 13:02:27 2013 +0100| [b274703493fb4ceb65badecde7f64dd88946afb9] | committer: Michael Niedermayer

avutil/atomic: use av_assert0()

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b274703493fb4ceb65badecde7f64dd88946afb9
---

 libavutil/atomic.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/libavutil/atomic.c b/libavutil/atomic.c
index 7a701e1..0780d8a 100644
--- 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);
-    assert(res == 2);
+    av_assert0(res == 2);
     avpriv_atomic_int_set(&val, 3);
     res = avpriv_atomic_int_get(&val);
-    assert(res == 3);
+    av_assert0(res == 3);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list