[FFmpeg-cvslog] libavcodec/libvpxenc: Don't free user-provided AVPacket

Andreas Rheinhardt git at videolan.org
Sat May 23 22:56:54 EEST 2020


ffmpeg | branch: release/2.8 | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Sat May 23 12:13:26 2020 +0200| [1662f9bb1c964d0419d7f0f63caa1ebf08dcc695] | committer: Andreas Rheinhardt

libavcodec/libvpxenc: Don't free user-provided AVPacket

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
(cherry picked from commit 26b45096906097a73ba587bf3b98dada4e795224)

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

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

diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 992122c982..ccd2141e7e 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -734,7 +734,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
                                                 cx_frame->sz_alpha + 8);
             if(!side_data) {
                 av_free_packet(pkt);
-                av_free(pkt);
                 return AVERROR(ENOMEM);
             }
             AV_WB64(side_data, 1);



More information about the ffmpeg-cvslog mailing list