ffmpeg | branch: release/3.3 | Andreas Rheinhardt 
<andreas.rheinha...@gmail.com> | Sat May 23 12:13:26 2020 +0200| 
[364a80ecb91d9b71c0306d323c2f2d7ca770c93e] | committer: Andreas Rheinhardt

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

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

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

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

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

_______________________________________________
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