aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-06-14 23:52:23 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-06-14 23:52:23 +0200
commit948e97a2cc5d10083eddd98dcc523d8889bab2c0 (patch)
treef46f56b3bec67d029dd72b893f38cad56281c2f9
parentbb850480e1796fcbf1f76c2c5748b717e7056d80 (diff)
downloadffmpeg-948e97a2cc5d10083eddd98dcc523d8889bab2c0.tar.gz
pcmdec: use av_assert()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/pcmdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/pcmdec.c b/libavformat/pcmdec.c
index 94f6b4ae25..4eb3c73ff9 100644
--- a/libavformat/pcmdec.c
+++ b/libavformat/pcmdec.c
@@ -24,6 +24,7 @@
#include "pcm.h"
#include "libavutil/log.h"
#include "libavutil/opt.h"
+#include "libavutil/avassert.h"
#define RAW_SAMPLES 1024
@@ -42,7 +43,7 @@ static int raw_read_packet(AVFormatContext *s, AVPacket *pkt)
return ret;
bps= av_get_bits_per_sample(s->streams[0]->codec->codec_id);
- assert(bps); // if false there IS a bug elsewhere (NOT in this function)
+ av_assert1(bps); // if false there IS a bug elsewhere (NOT in this function)
pkt->dts=
pkt->pts= pkt->pos*8 / (bps * s->streams[0]->codec->channels);