summaryrefslogtreecommitdiff
path: root/libavcodec/libvpxenc.c
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:25:11 +0200
commit26b45096906097a73ba587bf3b98dada4e795224 (patch)
tree204d1dd922259d93a0a5a93981beb20cf64b3142 /libavcodec/libvpxenc.c
parent7e6941e185649409f44fb5aa31207bd7b00d23cd (diff)
libavcodec/libvpxenc: Don't free user-provided AVPacket
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Diffstat (limited to 'libavcodec/libvpxenc.c')
-rw-r--r--libavcodec/libvpxenc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavcodec/libvpxenc.c b/libavcodec/libvpxenc.c
index 60a858853d..05bcc303d1 100644
--- a/libavcodec/libvpxenc.c
+++ b/libavcodec/libvpxenc.c
@@ -1148,7 +1148,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);