Skip to content

Commit

Permalink
vdec/lavd: check_duration wrong cond
Browse files Browse the repository at this point in the history
It was perhaps meant to advise frame threads if not enabled, not if
slice thread is not enabled.
  • Loading branch information
MartinPulec committed May 23, 2024
1 parent 3f146a0 commit b431386
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/video_decompress/libavcodec.c
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,9 @@ static void check_duration(struct state_libavcodec_decompress *s, double duratio
MOV_WIN_FRM, s->mov_avg_comp_duration * MS_IN_SEC, tpf * MS_IN_SEC,
TIME_SLOT_PERC_MAX);
const char *hint = NULL;
if ((s->codec_ctx->thread_type & FF_THREAD_SLICE) == 0 && (s->codec_ctx->codec->capabilities & AV_CODEC_CAP_FRAME_THREADS) != 0) {
if ((s->codec_ctx->thread_type & FF_THREAD_FRAME) == 0 &&
(s->codec_ctx->codec->capabilities & AV_CODEC_CAP_FRAME_THREADS) !=
0) {
hint = "\"--param lavd-thread-count=<n>FS\" option with small <n> or 0 (nr of logical cores)";
} else if (s->codec_ctx->thread_count == 1 && (s->codec_ctx->codec->capabilities & AV_CODEC_CAP_OTHER_THREADS) != 0) {
hint = "\"--param lavd-thread-count=<n>\" option with small <n> or 0 (nr of logical cores)";
Expand Down

0 comments on commit b431386

Please sign in to comment.