Browse Source

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.
tags/n4.0
Mark Thompson 8 years ago
parent
commit
b43b95f478
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      libavcodec/vp9_raw_reorder_bsf.c

+ 0
- 4
libavcodec/vp9_raw_reorder_bsf.c View File

@@ -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;


Loading…
Cancel
Save