diff --git a/devices/src/virtio/video/decoder/mod.rs b/devices/src/virtio/video/decoder/mod.rs index f6b0db9a0e..55ed21400f 100644 --- a/devices/src/virtio/video/decoder/mod.rs +++ b/devices/src/virtio/video/decoder/mod.rs @@ -163,7 +163,6 @@ enum PendingResponse { PictureReady { picture_buffer_id: i32, bitstream_id: i32, - visible_rect: Rect, }, FlushCompleted, } @@ -220,16 +219,7 @@ impl Context { PendingResponse::PictureReady { picture_buffer_id, bitstream_id, - visible_rect, } => { - let plane_size = ((visible_rect.right - visible_rect.left) - * (visible_rect.bottom - visible_rect.top)) - as u32; - for fmt in self.out_params.plane_formats.iter_mut() { - fmt.plane_size = plane_size; - // We don't need to set `plane_formats[i].stride` for the decoder. - } - let resource_id = self .out_res .dequeue_frame_buffer(*picture_buffer_id, self.stream_id)?; @@ -1005,7 +995,7 @@ impl Device for Decoder { DecoderEvent::PictureReady { picture_buffer_id, // FrameBufferId bitstream_id, // timestamp in second - visible_rect, + .. } => { if ctx.is_resetting { vec![] @@ -1014,7 +1004,6 @@ impl Device for Decoder { .push_back(PendingResponse::PictureReady { picture_buffer_id, bitstream_id, - visible_rect, }); ctx.output_pending_responses() }