Skip to content

Commit cd4cb27

Browse files
BoatsMcGeeCopilot
andauthored
Fix new Vector unnecessary allocation with empty slice
Co-authored-by: Copilot <[email protected]>
1 parent 2797db9 commit cd4cb27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

av1an-core/src/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ impl Av1anContext {
800800
let vs_script =
801801
self.vs_script.as_ref().expect("vs_script should exist").as_path();
802802
let vs_proxy_script = self.vs_proxy_script.as_deref();
803-
self.create_video_queue_vs(scenes, vs_script, vs_proxy_script, &Vec::new())?
803+
self.create_video_queue_vs(scenes, vs_script, vs_proxy_script, &[])?
804804
},
805805
ChunkMethod::Hybrid => self.create_video_queue_hybrid(scenes)?,
806806
ChunkMethod::Select => self.create_video_queue_select(scenes)?,

0 commit comments

Comments
 (0)