mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
media decoder: use high precision to_string for framerate
Change-Id: I34f1f4353b3da02c40e9df2434cedeee04b307aa
This commit is contained in:
@ -97,9 +97,9 @@ int MediaDecoder::openInput(const DeviceParams& params)
|
||||
if (params.framerate.denominator() == 333333)
|
||||
framerate = (int)(params.framerate.real());
|
||||
if (params.framerate.denominator() != 4999998)
|
||||
av_dict_set(&options_, "framerate", std::to_string(framerate).c_str(), 0);
|
||||
av_dict_set(&options_, "framerate", jami::to_string(framerate).c_str(), 0);
|
||||
#else
|
||||
av_dict_set(&options_, "framerate", std::to_string(params.framerate.real()).c_str(), 0);
|
||||
av_dict_set(&options_, "framerate", jami::to_string(params.framerate.real()).c_str(), 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user