You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-04 22:03:09 +02:00
avcodec/wmaenc: Don't unnecessarily reset AVPacket.size
The packet is unreferenced generically lateron anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
@ -415,7 +415,6 @@ static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt,
|
|||||||
error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, total_gain++);
|
error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, total_gain++);
|
||||||
if (error > 0) {
|
if (error > 0) {
|
||||||
av_log(avctx, AV_LOG_ERROR, "Invalid input data or requested bitrate too low, cannot encode\n");
|
av_log(avctx, AV_LOG_ERROR, "Invalid input data or requested bitrate too low, cannot encode\n");
|
||||||
avpkt->size = 0;
|
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
av_assert0((put_bits_count(&s->pb) & 7) == 0);
|
av_assert0((put_bits_count(&s->pb) & 7) == 0);
|
||||||
|
Reference in New Issue
Block a user