The packet is unreferenced generically lateron anyway.
Unified · Split
| @@ -415,7 +415,6 @@ static int encode_superframe(AVCodecContext *avctx, AVPacket *avpkt, · 414 unmodified lines | ||
| 415 | 415 | error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, total_gain++); |
| 416 | 416 | if (error > 0) { |
| 417 | 417 | av_log(avctx, AV_LOG_ERROR, "Invalid input data or requested bitrate too low, cannot encode\n"); |
| 418 | − avpkt->size = 0; | |
| 419 | 418 | return AVERROR(EINVAL); |
| 420 | 419 | } |
| 421 | 420 | av_assert0((put_bits_count(&s->pb) & 7) == 0); |