From 3f9054e95d54af0edd1b9bfdc1e4df3308cb0f6d Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Fri, 20 Apr 2018 10:28:26 +0200 Subject: [PATCH] mpeg2: remove output mplane querybuf Signed-off-by: Maxime Ripard --- src/mpeg2.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/mpeg2.c b/src/mpeg2.c index a7f3818..d7e1f5b 100644 --- a/src/mpeg2.c +++ b/src/mpeg2.c @@ -48,18 +48,6 @@ VAStatus sunxi_cedrus_render_mpeg2_slice_data(VADriverContextP ctx, struct v4l2_buffer buf; struct v4l2_plane plane[1]; - memset(plane, 0, sizeof(struct v4l2_plane)); - - /* Query */ - memset(&(buf), 0, sizeof(buf)); - buf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE; - buf.memory = V4L2_MEMORY_MMAP; - buf.index = obj_surface->input_buf_index; - buf.length = 1; - buf.m.planes = plane; - - assert(ioctl(driver_data->mem2mem_fd, VIDIOC_QUERYBUF, &buf)==0); - /* Populate frame */ char *src_buf = mmap(NULL, obj_buffer->size, PROT_READ | PROT_WRITE, MAP_SHARED,