Commit 0a7bf340 authored by Michael Niedermayer's avatar Michael Niedermayer

wmaenc: change some asserts to av_assert0.

This ensures they are always checked
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 0d92e5a6
...@@ -398,9 +398,9 @@ static int encode_superframe(AVCodecContext *avctx, ...@@ -398,9 +398,9 @@ static int encode_superframe(AVCodecContext *avctx,
#endif #endif
encode_frame(s, s->coefs, buf, buf_size, total_gain); 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; i= s->block_align - (put_bits_count(&s->pb)+7)/8;
assert(i>=0); av_assert0(i>=0);
while(i--) while(i--)
put_bits(&s->pb, 8, 'N'); put_bits(&s->pb, 8, 'N');
......
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