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
......@@ -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);
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);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment