diff options
author | Michael Niedermayer | 2012-03-05 07:28:54 +0100 |
---|---|---|
committer | Michael Niedermayer | 2012-03-05 19:00:22 +0100 |
commit | 0a7bf34042dbf31d640f7091beb19926713c31d3 (patch) | |
tree | 48f7b7e4dfa76271127935f8482c7724812f51e9 | |
parent | 0d92e5a6828af367193eb114aec3b07983cb4f96 (diff) |
wmaenc: change some asserts to av_assert0.
This ensures they are always checked
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/wmaenc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c index 2eb46cfad7..0674ca0cc9 100644 --- a/libavcodec/wmaenc.c +++ b/libavcodec/wmaenc.c @@ -398,9 +398,9 @@ static int encode_superframe(AVCodecContext *avctx, #endif encode_frame(s, s->coefs, buf, buf_size, total_gain); - assert((put_bits_count(&s->pb) & 7) == 0); + av_assert0((put_bits_count(&s->pb) & 7) == 0); i= s->block_align - (put_bits_count(&s->pb)+7)/8; - assert(i>=0); + av_assert0(i>=0); while(i--) put_bits(&s->pb, 8, 'N'); |