diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-17 17:10:05 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-17 17:10:05 +0200 |
commit | eaf655384b09d936e57a8f889721d5eb8a72a2b4 (patch) | |
tree | ba62dc03dbbe0474a0d081e408bd239562cd81ee /libavformat | |
parent | 4aed3ac86a55131581f40603bbf5b6c4ba320776 (diff) | |
download | ffmpeg-eaf655384b09d936e57a8f889721d5eb8a72a2b4.tar.gz |
avienc: use av_assert
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/avienc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libavformat/avienc.c b/libavformat/avienc.c index a4795e9ca0..f257bcffc2 100644 --- a/libavformat/avienc.c +++ b/libavformat/avienc.c @@ -25,6 +25,7 @@ #include "riff.h" #include "libavutil/intreadwrite.h" #include "libavutil/dict.h" +#include "libavutil/avassert.h" /* * TODO: @@ -130,7 +131,7 @@ static int avi_write_counters(AVFormatContext* s, int riff_id) for(n = 0; n < s->nb_streams; n++) { AVIStream *avist= s->streams[n]->priv_data; - assert(avist->frames_hdr_strm); + av_assert0(avist->frames_hdr_strm); stream = s->streams[n]->codec; avio_seek(pb, avist->frames_hdr_strm, SEEK_SET); ff_parse_specific_params(stream, &au_byterate, &au_ssize, &au_scale); @@ -143,7 +144,7 @@ static int avi_write_counters(AVFormatContext* s, int riff_id) nb_frames = FFMAX(nb_frames, avist->packet_count); } if(riff_id == 1) { - assert(avi->frames_hdr_all); + av_assert0(avi->frames_hdr_all); avio_seek(pb, avi->frames_hdr_all, SEEK_SET); avio_wl32(pb, nb_frames); } @@ -411,7 +412,7 @@ static int avi_write_ix(AVFormatContext *s) char ix_tag[] = "ix00"; int i, j; - assert(pb->seekable); + av_assert0(pb->seekable); if (avi->riff_id > AVI_MASTER_INDEX_SIZE) return -1; |