Commit 9d87c8e6 authored by Michael Niedermayer's avatar Michael Niedermayer

rawdec: use av_assert()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 948e97a2
...@@ -27,6 +27,7 @@ ...@@ -27,6 +27,7 @@
#include "libavutil/opt.h" #include "libavutil/opt.h"
#include "libavutil/parseutils.h" #include "libavutil/parseutils.h"
#include "libavutil/pixdesc.h" #include "libavutil/pixdesc.h"
#include "libavutil/avassert.h"
/* raw input */ /* raw input */
int ff_raw_read_header(AVFormatContext *s) int ff_raw_read_header(AVFormatContext *s)
...@@ -67,7 +68,7 @@ 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->channels = s1->channels;
st->codec->bits_per_coded_sample = av_get_bits_per_sample(st->codec->codec_id); 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; 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); avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment