diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-12 23:16:24 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-12 23:16:52 +0200 |
commit | db03f91f4bfd7ea9ce9988fd5f9065ffd1ddf838 (patch) | |
tree | 4f7874cdad95ffe1dd7d5e40ef5b5b523dee58b1 | |
parent | 375c0f74d190083ca1d0bf8f452afd9cd4502c37 (diff) | |
download | ffmpeg-db03f91f4bfd7ea9ce9988fd5f9065ffd1ddf838.tar.gz |
mxfenc: switch to av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/mxfenc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c index 762cd6e8d8..5fa7ea2467 100644 --- a/libavformat/mxfenc.c +++ b/libavformat/mxfenc.c @@ -38,6 +38,7 @@ #include "libavutil/opt.h" #include "libavutil/random_seed.h" #include "libavutil/timecode.h" +#include "libavutil/avassert.h" #include "libavcodec/bytestream.h" #include "libavcodec/dnxhddata.h" #include "audiointerleave.h" @@ -1294,7 +1295,7 @@ static void mxf_write_klv_fill(AVFormatContext *s) klv_encode_ber4_length(s->pb, pad); for (; pad; pad--) avio_w8(s->pb, 0); - assert(!(avio_tell(s->pb) & (KAG_SIZE-1))); + av_assert1(!(avio_tell(s->pb) & (KAG_SIZE-1))); } } @@ -1883,7 +1884,7 @@ static void mxf_write_d10_video_packet(AVFormatContext *s, AVStream *st, AVPacke klv_encode_ber4_length(s->pb, pad); for (; pad; pad--) avio_w8(s->pb, 0); - assert(!(avio_tell(s->pb) & (KAG_SIZE-1))); + av_assert1(!(avio_tell(s->pb) & (KAG_SIZE-1))); } else { av_log(s, AV_LOG_WARNING, "cannot fill d-10 video packet\n"); for (; pad > 0; pad--) |