Skip to content

Commit 87e5da9

Browse files
committed
avcodec/wmaenc: Don't unnecessarily reset AVPacket.size
The packet is unreferenced generically lateron anyway. Signed-off-by: Andreas Rheinhardt <[email protected]>
1 parent 196ee9f commit 87e5da9

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

libavcodec/wmaenc.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,6 @@ static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt,
415415
error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, total_gain++);
416416
if (error > 0) {
417417
av_log(avctx, AV_LOG_ERROR, "Invalid input data or requested bitrate too low, cannot encode\n");
418-
avpkt->size = 0;
419418
return AVERROR(EINVAL);
420419
}
421420
av_assert0((put_bits_count(&s->pb) & 7) == 0);

0 commit comments

Comments
 (0)