Browse code

lavf/aviobuf: use av_assert()

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

Michael Niedermayer authored on 2012/06/16 02:37:03
Showing 1 changed files
... ...
@@ -24,6 +24,7 @@
24 24
 #include "libavutil/intreadwrite.h"
25 25
 #include "libavutil/log.h"
26 26
 #include "libavutil/opt.h"
27
+#include "libavutil/avassert.h"
27 28
 #include "avformat.h"
28 29
 #include "avio.h"
29 30
 #include "avio_internal.h"
... ...
@@ -712,7 +713,7 @@ int ffio_set_buf_size(AVIOContext *s, int buf_size)
712 712
 
713 713
 static int url_resetbuf(AVIOContext *s, int flags)
714 714
 {
715
-    assert(flags == AVIO_FLAG_WRITE || flags == AVIO_FLAG_READ);
715
+    av_assert1(flags == AVIO_FLAG_WRITE || flags == AVIO_FLAG_READ);
716 716
 
717 717
     if (flags & AVIO_FLAG_WRITE) {
718 718
         s->buf_end = s->buffer + s->buffer_size;