Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Michael Niedermayer authored on 2012/06/15 06:52:40... | ... |
@@ -27,6 +27,7 @@ |
27 | 27 |
#include "libavutil/opt.h" |
28 | 28 |
#include "libavutil/parseutils.h" |
29 | 29 |
#include "libavutil/pixdesc.h" |
30 |
+#include "libavutil/avassert.h" |
|
30 | 31 |
|
31 | 32 |
/* raw input */ |
32 | 33 |
int ff_raw_read_header(AVFormatContext *s) |
... | ... |
@@ -67,7 +68,7 @@ int ff_raw_read_header(AVFormatContext *s) |
67 | 67 |
st->codec->channels = s1->channels; |
68 | 68 |
|
69 | 69 |
st->codec->bits_per_coded_sample = av_get_bits_per_sample(st->codec->codec_id); |
70 |
- assert(st->codec->bits_per_coded_sample > 0); |
|
70 |
+ av_assert0(st->codec->bits_per_coded_sample > 0); |
|
71 | 71 |
st->codec->block_align = st->codec->bits_per_coded_sample*st->codec->channels/8; |
72 | 72 |
avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate); |
73 | 73 |
break; |