Skip to content

Commit

Permalink
wip: rename variable
Browse files Browse the repository at this point in the history
  • Loading branch information
superyu1337 authored and FreezyLemon committed Dec 3, 2024
1 parent cdcb6b1 commit 45b492e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/video.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,15 @@ fn calc_score<S: Pixel, D: Pixel, E: Decoder, F: Decoder>(
let (frame_idx, (src_frame, dst_frame)) = {
let mut guard = mtx.lock().unwrap();

let skip_frames = guard.next_frame - guard.current_frame;
let distance_to_next = guard.next_frame - guard.current_frame;

if let Some(end_frame) = end_frame {
if guard.next_frame >= end_frame {
return None;
}
}

for ii in 1..skip_frames {
for ii in 1..distance_to_next {
let _src_frame = guard.source.read_video_frame::<S>();
let _dst_frame = guard.distorted.read_video_frame::<D>();
if _src_frame.is_none() || _dst_frame.is_none() {
Expand Down

0 comments on commit 45b492e

Please sign in to comment.