Skip to content
Snippets Groups Projects
Commit ebe76c51 authored by Andreas Traczyk's avatar Andreas Traczyk
Browse files

media decoder: use high precision to_string for framerate

Change-Id: I34f1f4353b3da02c40e9df2434cedeee04b307aa
parent 4bade6fa
No related branches found
No related tags found
No related merge requests found
...@@ -97,9 +97,9 @@ int MediaDecoder::openInput(const DeviceParams& params) ...@@ -97,9 +97,9 @@ int MediaDecoder::openInput(const DeviceParams& params)
if (params.framerate.denominator() == 333333) if (params.framerate.denominator() == 333333)
framerate = (int)(params.framerate.real()); framerate = (int)(params.framerate.real());
if (params.framerate.denominator() != 4999998) 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 #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 #endif
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment