Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a2c338bb
Commit
a2c338bb
authored
May 21, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't rely on scanf when parsing floats from files
(well, you _can_ but you'd need to use uselocale() then)
parent
a159f479
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
modules/demux/subtitle.c
modules/demux/subtitle.c
+3
-1
No files found.
modules/demux/subtitle.c
View file @
a2c338bb
...
@@ -1468,8 +1468,10 @@ static int ParseMPSub( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
...
@@ -1468,8 +1468,10 @@ static int ParseMPSub( demux_t *p_demux, subtitle_t *p_subtitle, int i_idx )
free
(
psz_temp
);
free
(
psz_temp
);
}
}
/* Data Lines */
/* Data Lines */
if
(
sscanf
(
s
,
"%f %f"
,
&
f1
,
&
f2
)
==
2
)
f1
=
us_strtod
(
s
,
&
psz_temp
);
if
(
*
psz_temp
)
{
{
f2
=
us_strtod
(
psz_temp
,
NULL
);
mpsub_total
+=
f1
*
mpsub_factor
;
mpsub_total
+=
f1
*
mpsub_factor
;
p_subtitle
->
i_start
=
(
int64_t
)(
10000
.
0
*
mpsub_total
);
p_subtitle
->
i_start
=
(
int64_t
)(
10000
.
0
*
mpsub_total
);
mpsub_total
+=
f2
*
mpsub_factor
;
mpsub_total
+=
f2
*
mpsub_factor
;
...
...
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