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

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 26b4509690)
This commit is contained in:
Andreas Rheinhardt 2020-05-23 12:13:26 +02:00
parent ef76e5acaa
commit bf7ed52c25
1 changed files with 0 additions and 1 deletions

View File

@ -935,7 +935,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);