Browse Source

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

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
(cherry picked from commit 26b4509690)
release/3.0
Andreas Rheinhardt 5 years ago
parent
commit
df000208ea
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      libavcodec/libvpxenc.c

+ 0
- 1
libavcodec/libvpxenc.c View File

@@ -792,7 +792,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
cx_frame->sz_alpha + 8); cx_frame->sz_alpha + 8);
if(!side_data) { if(!side_data) {
av_packet_unref(pkt); av_packet_unref(pkt);
av_free(pkt);
return AVERROR(ENOMEM); return AVERROR(ENOMEM);
} }
AV_WB64(side_data, 1); AV_WB64(side_data, 1);


Loading…
Cancel
Save