mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Revert "wmaenc: check final frame size against output packet size"
This condition cannot happen, if it can it is a bug that MUST be fixed.
And i very happily volunteer to fix it if someone reports a case to
me that fails.
This reverts commit 5d652e063b
.
This commit is contained in:
parent
456d65a5c6
commit
c99bd29462
@ -396,13 +396,11 @@ static int encode_superframe(AVCodecContext *avctx,
|
||||
}
|
||||
#endif
|
||||
|
||||
if ((i = encode_frame(s, s->coefs, buf, buf_size, total_gain)) >= 0) {
|
||||
av_log(avctx, AV_LOG_ERROR, "required frame size too large. please "
|
||||
"use a higher bit rate.\n");
|
||||
return AVERROR(EINVAL);
|
||||
}
|
||||
encode_frame(s, s->coefs, buf, buf_size, total_gain);
|
||||
assert((put_bits_count(&s->pb) & 7) == 0);
|
||||
while (i++)
|
||||
i= s->block_align - (put_bits_count(&s->pb)+7)/8;
|
||||
assert(i>=0);
|
||||
while(i--)
|
||||
put_bits(&s->pb, 8, 'N');
|
||||
|
||||
flush_put_bits(&s->pb);
|
||||
|
Loading…
Reference in New Issue
Block a user