[FFmpeg-cvslog] rawdec: use av_assert()
Michael Niedermayer
git at videolan.org
Thu Jun 14 23:56:52 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Thu Jun 14 23:52:40 2012 +0200| [9d87c8e6f8edfb45d999b938855531386c490e96] | committer: Michael Niedermayer
rawdec: use av_assert()
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=9d87c8e6f8edfb45d999b938855531386c490e96
---
libavformat/rawdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 1746e7b..4a06f80 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;
More information about the ffmpeg-cvslog
mailing list