Browse Source

avdevice/xcbgrab: stop using av_init_packet()

Signed-off-by: James Almer <jamrial@gmail.com>
tags/n4.4
James Almer 4 years ago
parent
commit
54cb30ce64
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      libavdevice/xcbgrab.c

+ 0
- 4
libavdevice/xcbgrab.c View File

@@ -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;


Loading…
Cancel
Save