From 5740e2fb326aa3b46e8480d919252c8733c15eba Mon Sep 17 00:00:00 2001 From: Andreas Reich Date: Fri, 11 Oct 2024 17:33:46 +0200 Subject: [PATCH] fix oversight on trying to make conditions easier to read, caused padding handling to break again --- crates/store/re_video/src/decode/av1.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/store/re_video/src/decode/av1.rs b/crates/store/re_video/src/decode/av1.rs index da3276900e6d..db663b1b58ce 100644 --- a/crates/store/re_video/src/decode/av1.rs +++ b/crates/store/re_video/src/decode/av1.rs @@ -176,7 +176,7 @@ fn output_picture( let mut data = Vec::with_capacity(num_packed_bytes_y + num_packed_bytes_uv * 2); { let plane = picture.plane(PlanarImageComponent::Y); - if packed_stride_y != actual_stride_y { + if packed_stride_y == actual_stride_y { data.extend_from_slice(&plane[0..num_packed_bytes_y]); } else { re_tracing::profile_scope!("slow path, y-plane");