Fix: compile warning when building without ffmpeg
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user