aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Thompson <sw@jkqxz.net>2017-04-26 21:39:54 +0100
committerMark Thompson <sw@jkqxz.net>2017-04-30 14:09:05 +0100
commitb43b95f4789b6e60f9684918fd3c0a5f3f18aef6 (patch)
treeca664f3fc9d97934e246090bf74af87b76a1fc2d
parent831018b0bbe26a603802a9022472f714a59293be (diff)
downloadffmpeg-b43b95f4789b6e60f9684918fd3c0a5f3f18aef6.tar.gz
vp9_raw_reorder_bsf: Remove a redundant allocation
This was left over from an earlier version which created the new packet inside the current frame structure. Now it just leaks an unused packet, so remove the allocation entirely.
-rw-r--r--libavcodec/vp9_raw_reorder_bsf.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/vp9_raw_reorder_bsf.c b/libavcodec/vp9_raw_reorder_bsf.c
index 7f00f5f103..f5a5e49eda 100644
--- a/libavcodec/vp9_raw_reorder_bsf.c
+++ b/libavcodec/vp9_raw_reorder_bsf.c
@@ -241,10 +241,6 @@ static int vp9_raw_reorder_make_output(AVBSFContext *bsf,
"(%"PRId64") from slot %d.\n",
frame->sequence, frame->pts, s);
- frame->packet = av_packet_alloc();
- if (!frame->packet)
- return AVERROR(ENOMEM);
-
err = av_new_packet(out, 2);
if (err < 0)
return err;