ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinha...@outlook.com> | 
Sat May 25 02:41:32 2024 +0200| [87e5da90674b17d50e4cce9bae5037dbf1e7f1ff] | 
committer: Andreas Rheinhardt

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

The packet is unreferenced generically lateron anyway.

Signed-off-by: Andreas Rheinhardt <andreas.rheinha...@outlook.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=87e5da90674b17d50e4cce9bae5037dbf1e7f1ff
---

 libavcodec/wmaenc.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavcodec/wmaenc.c b/libavcodec/wmaenc.c
index 09435c1585..889306aebd 100644
--- a/libavcodec/wmaenc.c
+++ b/libavcodec/wmaenc.c
@@ -415,7 +415,6 @@ static int encode_superframe(AVCodecContext *avctx, 
AVPacket *avpkt,
         error = encode_frame(s, s->coefs, avpkt->data, avpkt->size, 
total_gain++);
     if (error > 0) {
         av_log(avctx, AV_LOG_ERROR, "Invalid input data or requested bitrate 
too low, cannot encode\n");
-        avpkt->size = 0;
         return AVERROR(EINVAL);
     }
     av_assert0((put_bits_count(&s->pb) & 7) == 0);

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to