diff --git a/libavcodec/vp9_raw_reorder_bsf.c b/libavcodec/vp9_raw_reorder_bsf.c
index 7f00f5f10391d9ead9727ebfe553d379c2401151..f5a5e49edaf29ed8f852c5320807800276c4d7be 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;