Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
42413c15
Commit
42413c15
authored
Aug 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist: avoid implicit double upconversion
parent
f1d881e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/playlist/engine.c
src/playlist/engine.c
+2
-2
No files found.
src/playlist/engine.c
View file @
42413c15
...
@@ -143,7 +143,7 @@ static int RateOffsetCallback( vlc_object_t *obj, char const *psz_cmd,
...
@@ -143,7 +143,7 @@ static int RateOffsetCallback( vlc_object_t *obj, char const *psz_cmd,
if
(
!
strcmp
(
psz_cmd
,
"rate-faster"
)
)
if
(
!
strcmp
(
psz_cmd
,
"rate-faster"
)
)
{
{
/* compensate for input rounding errors */
/* compensate for input rounding errors */
float
r
=
f_rate
*
1
.
1
;
float
r
=
f_rate
*
1
.
1
f
;
for
(
size_t
i
=
0
;
i
<
i_rate_count
;
i
++
)
for
(
size_t
i
=
0
;
i
<
i_rate_count
;
i
++
)
if
(
r
<
pf_rate
[
i
]
)
if
(
r
<
pf_rate
[
i
]
)
{
{
...
@@ -154,7 +154,7 @@ static int RateOffsetCallback( vlc_object_t *obj, char const *psz_cmd,
...
@@ -154,7 +154,7 @@ static int RateOffsetCallback( vlc_object_t *obj, char const *psz_cmd,
else
else
{
{
/* compensate for input rounding errors */
/* compensate for input rounding errors */
float
r
=
f_rate
*
.
9
;
float
r
=
f_rate
*
.
9
f
;
for
(
size_t
i
=
1
;
i
<
i_rate_count
;
i
++
)
for
(
size_t
i
=
1
;
i
<
i_rate_count
;
i
++
)
if
(
r
<=
pf_rate
[
i
]
)
if
(
r
<=
pf_rate
[
i
]
)
{
{
...
...
Write
Preview
Markdown
is supported
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