We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 59cc022 commit ec24944Copy full SHA for ec24944
src/torchcodec/decoders/_core/VideoDecoder.cpp
@@ -254,6 +254,9 @@ void VideoDecoder::initializeFilterGraphForStream(
254
}
255
filterState.filterGraph.reset(avfilter_graph_alloc());
256
TORCH_CHECK(filterState.filterGraph.get() != nullptr);
257
+ if (options.ffmpegThreadCount.has_value()) {
258
+ filterState.filterGraph->nb_threads = options.ffmpegThreadCount.value();
259
+ }
260
const AVFilter* buffersrc = avfilter_get_by_name("buffer");
261
const AVFilter* buffersink = avfilter_get_by_name("buffersink");
262
enum AVPixelFormat pix_fmts[] = {AV_PIX_FMT_RGB24, AV_PIX_FMT_NONE};
0 commit comments