lib/ffmpeg/Time: remove redundant inline keywords from constexpr functions

This commit is contained in:
Max Kellermann 2019-03-08 10:28:02 +01:00
parent f6c0688684
commit 24cde31328

View File

@ -53,7 +53,7 @@ FfmpegTimeToDouble(int64_t t, const AVRational time_base) noexcept
* Convert a std::ratio to a #AVRational. * Convert a std::ratio to a #AVRational.
*/ */
template<typename Ratio> template<typename Ratio>
static inline constexpr AVRational constexpr AVRational
RatioToAVRational() RatioToAVRational()
{ {
return { Ratio::num, Ratio::den }; 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. * Replace #AV_NOPTS_VALUE with the given fallback.
*/ */
static constexpr int64_t constexpr int64_t
FfmpegTimestampFallback(int64_t t, int64_t fallback) FfmpegTimestampFallback(int64_t t, int64_t fallback)
{ {
return gcc_likely(t != int64_t(AV_NOPTS_VALUE)) return gcc_likely(t != int64_t(AV_NOPTS_VALUE))