[FFmpeg-cvslog] avdevice/xcbgrab: stop using av_init_packet()
James Almer
git at videolan.org
Wed Mar 17 21:17:15 EET 2021
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Fri Jan 29 13:28:42 2021 -0300| [54cb30ce64dc75d047609deb9dd8702e5d5c1782] | committer: James Almer
avdevice/xcbgrab: stop using av_init_packet()
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=54cb30ce64dc75d047609deb9dd8702e5d5c1782
---
libavdevice/xcbgrab.c | 4 ----
1 file changed, 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;
More information about the ffmpeg-cvslog
mailing list