Fix: compile warning when building without ffmpeg

This commit is contained in:
Aras Pranckevicius
2025-09-04 09:48:31 +03:00
parent 2b01753170
commit e632d7992f

View File

@@ -544,6 +544,12 @@ bool MOV_codec_supports_crf(AVCodecID av_codec_id)
AV_CODEC_ID_AV1);
}
int MOV_thread_count()
{
/* ffmpeg does not recommend thread counts above 16. */
return std::min(BLI_system_thread_count(), 16);
}
#endif /* WITH_FFMPEG */
bool MOV_is_movie_file(const char *filepath)
@@ -641,9 +647,3 @@ bool MOV_codec_supports_crf(IMB_Ffmpeg_Codec_ID codec_id)
return false;
#endif
}
int MOV_thread_count()
{
/* ffmpeg does not recommend thread counts above 16. */
return std::min(BLI_system_thread_count(), 16);
}