aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/xcbgrab.c
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2021-01-29 13:28:42 -0300
committerJames Almer <jamrial@gmail.com>2021-03-17 15:19:36 -0300
commit54cb30ce64dc75d047609deb9dd8702e5d5c1782 (patch)
tree94ad509bba6de36a36eee275a1efb7440153e196 /libavdevice/xcbgrab.c
parent6b3a563b10a20194be1d74bc9d34102ea1de996f (diff)
downloadffmpeg-54cb30ce64dc75d047609deb9dd8702e5d5c1782.tar.gz
avdevice/xcbgrab: stop using av_init_packet()
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavdevice/xcbgrab.c')
-rw-r--r--libavdevice/xcbgrab.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/libavdevice/xcbgrab.c b/libavdevice/xcbgrab.c
index 71f0902f8e..8e3292e577 100644
--- a/libavdevice/xcbgrab.c
+++ b/libavdevice/xcbgrab.c
@@ -186,8 +186,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);
@@ -303,8 +301,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;