diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-16 17:59:01 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-16 17:59:01 +0200 |
commit | 0354412aa3722a29e9842369fb718f1d22e7d693 (patch) | |
tree | adadbbcc266fa1dc11f2439b50e3a978c28c2caa | |
parent | 3000074495c59fdbac98bfdd3ced22eafab725c6 (diff) | |
download | ffmpeg-0354412aa3722a29e9842369fb718f1d22e7d693.tar.gz |
ffmenc: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavformat/ffmenc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c index 84ed697dd5..74807d9813 100644 --- a/libavformat/ffmenc.c +++ b/libavformat/ffmenc.c @@ -21,6 +21,7 @@ #include "libavutil/intreadwrite.h" #include "libavutil/intfloat.h" +#include "libavutil/avassert.h" #include "avformat.h" #include "internal.h" #include "ffm.h" @@ -189,7 +190,7 @@ static int ffm_write_header(AVFormatContext *s) /* init packet mux */ ffm->packet_ptr = ffm->packet; ffm->packet_end = ffm->packet + ffm->packet_size - FFM_HEADER_SIZE; - assert(ffm->packet_end >= ffm->packet); + av_assert0(ffm->packet_end >= ffm->packet); ffm->frame_offset = 0; ffm->dts = 0; ffm->first_packet = 1; |