diff options
author | Mark Thompson <sw@jkqxz.net> | 2017-04-26 21:39:54 +0100 |
---|---|---|
committer | Mark Thompson <sw@jkqxz.net> | 2017-04-30 14:09:05 +0100 |
commit | b43b95f4789b6e60f9684918fd3c0a5f3f18aef6 (patch) | |
tree | ca664f3fc9d97934e246090bf74af87b76a1fc2d /libavcodec/vp9_raw_reorder_bsf.c | |
parent | 831018b0bbe26a603802a9022472f714a59293be (diff) | |
download | ffmpeg-streaming-b43b95f4789b6e60f9684918fd3c0a5f3f18aef6.zip ffmpeg-streaming-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.
Diffstat (limited to 'libavcodec/vp9_raw_reorder_bsf.c')
-rw-r--r-- | libavcodec/vp9_raw_reorder_bsf.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libavcodec/vp9_raw_reorder_bsf.c b/libavcodec/vp9_raw_reorder_bsf.c index 7f00f5f..f5a5e49 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; |