diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-15 19:37:03 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-15 19:44:42 +0200 |
commit | 47f830306959726573be159f1420191c04dc7ed8 (patch) | |
tree | eb78a8be48887a90569f48802accda35c15ff6c8 /libavformat/aviobuf.c | |
parent | 67703d64d70ba3f072b27bb94ad73d597b4f45d4 (diff) | |
download | ffmpeg-47f830306959726573be159f1420191c04dc7ed8.tar.gz |
lavf/aviobuf: use av_assert()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/aviobuf.c')
-rw-r--r-- | libavformat/aviobuf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/aviobuf.c b/libavformat/aviobuf.c index d8451c56d4..9154075701 100644 --- a/libavformat/aviobuf.c +++ b/libavformat/aviobuf.c @@ -24,6 +24,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/log.h" #include "libavutil/opt.h" +#include "libavutil/avassert.h" #include "avformat.h" #include "avio.h" #include "avio_internal.h" @@ -712,7 +713,7 @@ int ffio_set_buf_size(AVIOContext *s, int buf_size) static int url_resetbuf(AVIOContext *s, int flags) { - assert(flags == AVIO_FLAG_WRITE || flags == AVIO_FLAG_READ); + av_assert1(flags == AVIO_FLAG_WRITE || flags == AVIO_FLAG_READ); if (flags & AVIO_FLAG_WRITE) { s->buf_end = s->buffer + s->buffer_size; |