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 21:38:49 +0200
commit1662f9bb1c964d0419d7f0f63caa1ebf08dcc695 (patch)
tree58c5e61c905db3ad02f9d2a5b139374c280ab542
parent49a9b454b389c18b8ebf65e91cb31c768c10802d (diff)
downloadffmpeg-1662f9bb1c964d0419d7f0f63caa1ebf08dcc695.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 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);