diff --git a/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c b/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c index 8dc04bef698c4ec23ddf0e60054f897a419e4d84..e4ac8e7df66f9b6d552a133cfae299497d4138b5 100644 --- a/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c +++ b/libv4l-rockchip_v2/libv4l-encplugin-rockchip.c @@ -798,17 +798,6 @@ static int initialize_libvpu(struct encoder_context *ctx, int fd) if (ret) return ret; init_param.output_format = format.fmt.pix_mp.pixelformat; - - /* Get the cropped size. */ -#if 0 - struct v4l2_crop crop; - memset(&crop, 0, sizeof(crop)); - crop.type = ctx->output_streamon_type; - ret = SYS_IOCTL(fd, VIDIOC_G_CROP, &crop); - if (ret) - return ret; -#endif - init_param.width = ctx->crop_width; init_param.height = ctx->crop_height;