diff --git a/src/lib/ffmpeg/Time.hxx b/src/lib/ffmpeg/Time.hxx index e172126aa..781306331 100644 --- a/src/lib/ffmpeg/Time.hxx +++ b/src/lib/ffmpeg/Time.hxx @@ -53,7 +53,7 @@ FfmpegTimeToDouble(int64_t t, const AVRational time_base) noexcept * Convert a std::ratio to a #AVRational. */ template -static inline constexpr AVRational +constexpr AVRational RatioToAVRational() { return { Ratio::num, Ratio::den }; @@ -99,7 +99,7 @@ ToFfmpegTime(SongTime t, const AVRational time_base) noexcept /** * Replace #AV_NOPTS_VALUE with the given fallback. */ -static constexpr int64_t +constexpr int64_t FfmpegTimestampFallback(int64_t t, int64_t fallback) { return gcc_likely(t != int64_t(AV_NOPTS_VALUE))