[FFmpeg-cvslog] vp9_raw_reorder_bsf: Remove a redundant allocation

Mark Thompson git at videolan.org
Mon Oct 30 23:02:08 EET 2017


ffmpeg | branch: master | Mark Thompson <sw at jkqxz.net> | Wed Apr 26 21:39:54 2017 +0100| [b43b95f4789b6e60f9684918fd3c0a5f3f18aef6] | committer: Mark Thompson

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.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b43b95f4789b6e60f9684918fd3c0a5f3f18aef6
---

 libavcodec/vp9_raw_reorder_bsf.c | 4 ----
 1 file changed, 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;



More information about the ffmpeg-cvslog mailing list