Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
savoirfairelinux
jami-daemon
Commits
ebe76c51
Commit
ebe76c51
authored
Jul 12, 2019
by
Andreas Traczyk
Browse files
media decoder: use high precision to_string for framerate
Change-Id: I34f1f4353b3da02c40e9df2434cedeee04b307aa
parent
4bade6fa
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/media/media_decoder.cpp
View file @
ebe76c51
...
...
@@ -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
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment