Skip to content

Commit 279e931

Browse files
BoatsMcGeeshssoichiro
authored andcommitted
Fix Scene Detection Scores are overwriting previous Zones
1 parent f65e23e commit 279e931

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

av1an-core/src/scene_detect.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ pub fn scene_detect(
179179
);
180180
}
181181
}
182-
scores.extend(&sc_result.scores);
182+
scores.extend(sc_result.scores.iter().map(|(k, v)| (k + frames_read, *v)));
183183

184184
let scene_changes = sc_result.scene_changes;
185185
for (start, end) in scene_changes.iter().copied().tuple_windows() {

0 commit comments

Comments
 (0)