aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-23 12:13:26 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>2020-05-23 20:34:51 +0200
commitdc8443017203989d9a7bdc95f60177df1e7c71f4 (patch)
tree7da3efb36af0e5ad568418767bd70902ce055b92
parent68f5905f3cf6e98a3b7ab1ea9f2d84556be83c10 (diff)
downloadffmpeg-dc8443017203989d9a7bdc95f60177df1e7c71f4.tar.gz
libavcodec/libvpxenc: Don't free user-provided AVPacket
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> (cherry picked from commit 26b45096906097a73ba587bf3b98dada4e795224)
-rw-r--r--libavcodec/libvpxenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 09f7a88452..547c0c5d57 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -849,7 +849,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);