diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index ddf331d43d0d5114fdfbd35c2caa32a274740f7a..ae51d837af3570d1f9c1640a0aafcced5f30a970 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -979,7 +979,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
 #endif
     int res;
 
-    av_init_packet(pkt);
     if ((res = mmap_read_frame(ctx, pkt)) < 0) {
         return res;
     }
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index 5c8cfc1324959b2f69cc03eb7b246727e65d5fb8..65b409f0c10cdbaf7a52c81127c36a5038e44ce5 100644
--- a/libavdevice/x11grab.c
+++ b/libavdevice/x11grab.c
@@ -544,7 +544,6 @@ static int x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
       s->time_frame += INT64_C(1000000);
     } while ((s->time_frame * av_q2d(s->time_base) - curtime) <= 0);
 
-    av_init_packet(pkt);
     pkt->data = image->data;
     pkt->size = s->frame_size;
     pkt->pts  = curtime;