mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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:
parent
0d92e5a682
commit
0a7bf34042
@ -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');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user