Signed-off-by: James Almer <jamr...@gmail.com> --- libavdevice/xcbgrab.c | 4 ---- 1 file changed, 4 deletions(-)
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c index 9604a5aaf2..b3c2170112 100644 --- a/libavdevice/xcbgrab.c +++ b/libavdevice/xcbgrab.c @@ -184,8 +184,6 @@ static int xcbgrab_frame(AVFormatContext *s, AVPacket *pkt) data = xcb_get_image_data(img); length = xcb_get_image_data_length(img); - av_init_packet(pkt); - pkt->buf = av_buffer_create(data, length, xcbgrab_image_reply_free, img, 0); if (!pkt->buf) { free(img); @@ -301,8 +299,6 @@ static int xcbgrab_frame_shm(AVFormatContext *s, AVPacket *pkt) free(img); - av_init_packet(pkt); - pkt->buf = buf; pkt->data = buf->data; pkt->size = c->frame_size; -- 2.30.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".