Lines 559-565
static struct proxy_output_ctx *alloc_proxy_output_ffmpeg(
Link Here
|
559 |
av_dict_set(&codec_opts, "preset", "veryfast", 0); |
559 |
av_dict_set(&codec_opts, "preset", "veryfast", 0); |
560 |
av_dict_set(&codec_opts, "tune", "fastdecode", 0); |
560 |
av_dict_set(&codec_opts, "tune", "fastdecode", 0); |
561 |
|
561 |
|
562 |
if (rv->codec->capabilities & AV_CODEC_CAP_AUTO_THREADS) { |
562 |
if (rv->codec->capabilities & AV_CODEC_CAP_OTHER_THREADS) { |
563 |
rv->c->thread_count = 0; |
563 |
rv->c->thread_count = 0; |
564 |
} |
564 |
} |
565 |
else { |
565 |
else { |
Lines 872-878
static IndexBuildContext *index_ffmpeg_create_context(struct anim *anim,
Link Here
|
872 |
avcodec_parameters_to_context(context->iCodecCtx, context->iStream->codecpar); |
872 |
avcodec_parameters_to_context(context->iCodecCtx, context->iStream->codecpar); |
873 |
context->iCodecCtx->workaround_bugs = FF_BUG_AUTODETECT; |
873 |
context->iCodecCtx->workaround_bugs = FF_BUG_AUTODETECT; |
874 |
|
874 |
|
875 |
if (context->iCodec->capabilities & AV_CODEC_CAP_AUTO_THREADS) { |
875 |
if (context->iCodec->capabilities & AV_CODEC_CAP_OTHER_THREADS) { |
876 |
context->iCodecCtx->thread_count = 0; |
876 |
context->iCodecCtx->thread_count = 0; |
877 |
} |
877 |
} |
878 |
else { |
878 |
else { |