Skip to content

Commit 919859c

Browse files
Boats McGeeBoats McGee
Boats McGee
authored and
Boats McGee
committed
Fix race condition in Scene Detection causes End of File Error
1 parent 0274f8f commit 919859c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

av1an-core/src/scene_detect.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ pub fn av_scenechange_detect(
4747
frames
4848
});
4949

50+
let frames = frame_thread.join().unwrap();
5051
let scenes = scene_detect(
5152
input,
5253
encoder,
@@ -66,8 +67,6 @@ pub fn av_scenechange_detect(
6667
zones,
6768
)?;
6869

69-
let frames = frame_thread.join().unwrap();
70-
7170
progress_bar::finish_progress_bar();
7271

7372
Ok((scenes, frames))

0 commit comments

Comments
 (0)