From 61fef8993dc87acc29c762fd94fcfc0dff47804f Mon Sep 17 00:00:00 2001 From: Luca Barbato <lu_zero@gentoo.org> Date: Sat, 15 Sep 2018 02:04:25 +0200 Subject: [PATCH] Use for_each for the chroma loop in rdo --- src/rdo.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rdo.rs b/src/rdo.rs index c3e5a0e8..617aeb5c 100755 --- a/src/rdo.rs +++ b/src/rdo.rs @@ -342,7 +342,7 @@ pub fn rdo_mode_decision( }; // Find the best chroma prediction mode for the current luma prediction mode - for &chroma_mode in &mode_set_chroma { + mode_set_chroma.iter().for_each(|&chroma_mode| { skips.iter().for_each(|&skip| { let wr: &mut dyn Writer = &mut WriterCounter::new(); let tell = wr.tell_frac(); @@ -395,7 +395,7 @@ pub fn rdo_mode_decision( cw.rollback(&cw_checkpoint); }); - } + }); }); if best_mode_luma.is_intra() && is_chroma_block && bsize.cfl_allowed() { -- GitLab