You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
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.
This commit is contained in:
@@ -241,10 +241,6 @@ static int vp9_raw_reorder_make_output(AVBSFContext *bsf,
|
|||||||
"(%"PRId64") from slot %d.\n",
|
"(%"PRId64") from slot %d.\n",
|
||||||
frame->sequence, frame->pts, s);
|
frame->sequence, frame->pts, s);
|
||||||
|
|
||||||
frame->packet = av_packet_alloc();
|
|
||||||
if (!frame->packet)
|
|
||||||
return AVERROR(ENOMEM);
|
|
||||||
|
|
||||||
err = av_new_packet(out, 2);
|
err = av_new_packet(out, 2);
|
||||||
if (err < 0)
|
if (err < 0)
|
||||||
return err;
|
return err;
|
||||||
|
Reference in New Issue
Block a user