Skip to content

Commit

Permalink
Fix an inconsistency with rav1e
Browse files Browse the repository at this point in the history
  • Loading branch information
shssoichiro committed Sep 17, 2021
1 parent 8de0167 commit dfef138
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,13 @@ pub fn detect_scene_changes<R: Read, T: Pixel>(
// End of video
break;
}
if detector.analyze_next_frame(
&frame_set,
frameno as u64,
*keyframes.iter().last().unwrap(),
) {
if frameno == 0
|| detector.analyze_next_frame(
&frame_set,
frameno as u64,
*keyframes.iter().last().unwrap(),
)
{
keyframes.insert(frameno as u64);
};

Expand Down

0 comments on commit dfef138

Please sign in to comment.