wmaenc: change some asserts to av_assert0.

This ensures they are always checked

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-03-05 07:28:54 +01:00
parent 0d92e5a682
commit 0a7bf34042
1 changed files with 2 additions and 2 deletions

View File

@ -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');