[FFmpeg-cvslog] flacdec: switch to av_assert

Michael Niedermayer git at videolan.org
Thu Aug 2 22:02:51 CEST 2012


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Aug  2 21:58:03 2012 +0200| [4d38b838f094eb928de066a03c8dd41977b74b4e] | committer: Michael Niedermayer

flacdec: switch to av_assert

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

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

 libavcodec/flacdec.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavcodec/flacdec.c b/libavcodec/flacdec.c
index f0b0b3e..ffcc253 100644
--- a/libavcodec/flacdec.c
+++ b/libavcodec/flacdec.c
@@ -34,6 +34,7 @@
 #include <limits.h>
 
 #include "libavutil/audioconvert.h"
+#include "libavutil/avassert.h"
 #include "libavutil/crc.h"
 #include "avcodec.h"
 #include "internal.h"
@@ -44,9 +45,6 @@
 #include "flacdata.h"
 #include "flacdsp.h"
 
-#undef NDEBUG
-#include <assert.h>
-
 typedef struct FLACContext {
     FLACSTREAMINFO
 
@@ -141,7 +139,7 @@ static void allocate_buffers(FLACContext *s)
 {
     int i;
 
-    assert(s->max_blocksize);
+    av_assert0(s->max_blocksize);
 
     for (i = 0; i < s->channels; i++) {
         s->decoded[i] = av_malloc(sizeof(int32_t)*s->max_blocksize);



More information about the ffmpeg-cvslog mailing list