diff --git a/staging/vhost-device-video/src/video.rs b/staging/vhost-device-video/src/video.rs index 9495fa9..472a99b 100644 --- a/staging/vhost-device-video/src/video.rs +++ b/staging/vhost-device-video/src/video.rs @@ -720,7 +720,7 @@ pub struct virtio_video_crop { pub left: Le32, pub top: Le32, pub width: Le32, - pub heigth: Le32, + pub height: Le32, } #[repr(C)] @@ -729,7 +729,7 @@ pub struct virtio_video_params { pub queue_type: Le32, pub format: Le32, pub frame_width: Le32, - pub frame_heigth: Le32, + pub frame_height: Le32, pub min_buffers: Le32, pub max_buffers: Le32, pub crop: virtio_video_crop, diff --git a/staging/vhost-device-video/src/video_backends/v4l2_decoder.rs b/staging/vhost-device-video/src/video_backends/v4l2_decoder.rs index 1b37271..4d1e93f 100644 --- a/staging/vhost-device-video/src/video_backends/v4l2_decoder.rs +++ b/staging/vhost-device-video/src/video_backends/v4l2_decoder.rs @@ -441,7 +441,7 @@ impl VideoBackend for V4L2Decoder { let pix_fmt = unsafe { &format.fmt.pix_mp }; params.format = PixelFormat::from(pix_fmt.pixelformat).to_virtio(); params.frame_width = pix_fmt.width.into(); - params.frame_heigth = pix_fmt.height.into(); + params.frame_height = pix_fmt.height.into(); params.num_planes = (pix_fmt.num_planes as u32).into(); for i in 0..pix_fmt.num_planes { @@ -456,7 +456,7 @@ impl VideoBackend for V4L2Decoder { params.crop.left = (sel.left as u32).into(); params.crop.top = (sel.top as u32).into(); params.crop.width = sel.width.into(); - params.crop.heigth = sel.height.into(); + params.crop.height = sel.height.into(); } } @@ -477,7 +477,7 @@ impl VideoBackend for V4L2Decoder { let queue_type = v4l2r::QueueType::from_value(params.queue_type.into()).unwrap(); let mut format = v4l2r::Format { width: params.frame_width.into(), - height: params.frame_heigth.into(), + height: params.frame_height.into(), pixelformat: PixelFormat::from(>::into(params.format)), ..Default::default() }; @@ -779,7 +779,7 @@ impl V4L2Decoder { && format_frame.width.step != 1 && format_frame.length.step != 1 { - warn!("invalid step for continious framesize"); + warn!("invalid step for continuous framesize"); break; } @@ -823,7 +823,7 @@ impl V4L2Decoder { warn!("driver returned wrong ival width: {}", ival.width); } if height != ival.height { - warn!("driver returned wrong ival heigth: {}", ival.height); + warn!("driver returned wrong ival height: {}", ival.height); } frame_rates.push(video::virtio_video_format_range::from(ival));