mirror of https://git.ffmpeg.org/ffmpeg.git
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
|
#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');
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue