diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c index 1746e7b194..4a06f80890 100644 --- a/libavformat/rawdec.c +++ b/libavformat/rawdec.c @@ -27,6 +27,7 @@ #include "libavutil/opt.h" #include "libavutil/parseutils.h" #include "libavutil/pixdesc.h" +#include "libavutil/avassert.h" /* raw input */ int ff_raw_read_header(AVFormatContext *s) @@ -67,7 +68,7 @@ int ff_raw_read_header(AVFormatContext *s) st->codec->channels = s1->channels; st->codec->bits_per_coded_sample = av_get_bits_per_sample(st->codec->codec_id); - assert(st->codec->bits_per_coded_sample > 0); + av_assert0(st->codec->bits_per_coded_sample > 0); st->codec->block_align = st->codec->bits_per_coded_sample*st->codec->channels/8; avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); break;