]> git.sesse.net Git - ffmpeg/blobdiff - libavdevice/x11grab.c
avformat/hlsenc: improve to write m3u8 head block
[ffmpeg] / libavdevice / x11grab.c
index 5c8cfc1324959b2f69cc03eb7b246727e65d5fb8..65b409f0c10cdbaf7a52c81127c36a5038e44ce5 100644 (file)
@@ -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;