Skip to content

Commit

Permalink
Actually use the correct threading type, whoops
Browse files Browse the repository at this point in the history
  • Loading branch information
shssoichiro committed Jun 10, 2024
1 parent 9ae3052 commit a45d54b
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Version 0.12.1
## Version 0.12.2

- Enable threading for ffmpeg decoder, should greatly improve speed

Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "av-scenechange"
version = "0.12.1"
version = "0.12.2"
authors = ["Josh Holmer <[email protected]>"]
edition = "2021"
description = "Estimates frames in a video where a scenecut would be ideal"
Expand Down
2 changes: 1 addition & 1 deletion src/ffmpeg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ impl FfmpegDecoder {
.ok_or_else(|| anyhow::anyhow!("Could not find video stream"))?;
let stream_index = input.index();
let mut context = ffmpeg::codec::context::Context::from_parameters(input.parameters())?;
context.set_threading(threading::Config::kind(threading::Type::Slice));
context.set_threading(threading::Config::kind(threading::Type::Frame));
let mut decoder = context.decoder().video()?;
decoder.set_parameters(input.parameters())?;

Expand Down

0 comments on commit a45d54b

Please sign in to comment.