lib/ffmpeg/Time: replace C99 compound literal with C++ initializer list
This commit is contained in:
parent
bdc861f058
commit
8e4ca23727
@ -45,7 +45,7 @@ FfmpegTimeToDouble(int64_t t, const AVRational time_base) noexcept
|
||||
{
|
||||
assert(t != (int64_t)AV_NOPTS_VALUE);
|
||||
|
||||
return FloatDuration(av_rescale_q(t, time_base, (AVRational){1, 1024}))
|
||||
return FloatDuration(av_rescale_q(t, time_base, {1, 1024}))
|
||||
/ 1024;
|
||||
}
|
||||
|
||||
@ -69,7 +69,7 @@ FromFfmpegTime(int64_t t, const AVRational time_base) noexcept
|
||||
assert(t != (int64_t)AV_NOPTS_VALUE);
|
||||
|
||||
return SongTime::FromMS(av_rescale_q(t, time_base,
|
||||
(AVRational){1, 1000}));
|
||||
{1, 1000}));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user