Added
Link Here
|
1 |
--- source/blender/imbuf/intern/indexer.c.orig 2022-11-04 00:33:07 UTC |
2 |
+++ source/blender/imbuf/intern/indexer.c |
3 |
@@ -559,7 +559,7 @@ static struct proxy_output_ctx *alloc_proxy_output_ffm |
4 |
av_dict_set(&codec_opts, "preset", "veryfast", 0); |
5 |
av_dict_set(&codec_opts, "tune", "fastdecode", 0); |
6 |
|
7 |
- if (rv->codec->capabilities & AV_CODEC_CAP_AUTO_THREADS) { |
8 |
+ if (rv->codec->capabilities & AV_CODEC_CAP_OTHER_THREADS) { |
9 |
rv->c->thread_count = 0; |
10 |
} |
11 |
else { |
12 |
@@ -872,7 +872,7 @@ static IndexBuildContext *index_ffmpeg_create_context( |
13 |
avcodec_parameters_to_context(context->iCodecCtx, context->iStream->codecpar); |
14 |
context->iCodecCtx->workaround_bugs = FF_BUG_AUTODETECT; |
15 |
|
16 |
- if (context->iCodec->capabilities & AV_CODEC_CAP_AUTO_THREADS) { |
17 |
+ if (context->iCodec->capabilities & AV_CODEC_CAP_OTHER_THREADS) { |
18 |
context->iCodecCtx->thread_count = 0; |
19 |
} |
20 |
else { |