History

avcodec/wmaenc: Don't unnecessarily reset AVPacket.size

The packet is unreferenced generically lateron anyway.

Andreas Rheinhardt committed 2 years ago

Commit 87e5da91 parent 196ee9f1 file · +0 −1Browse files

Unified · Split

libavcodec/wmaenc.c+0−1
@@ -415,7 +415,6 @@ static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt, · 414 unmodified lines
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);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t