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
a161bda6
Commit
a161bda6
authored
Aug 13, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1: stick to single precision
(Note that CLOCK_FREQ has less than 24 significant bits)
parent
261a6537
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/demux/vc1.c
modules/demux/vc1.c
+4
-4
No files found.
modules/demux/vc1.c
View file @
a161bda6
...
...
@@ -106,8 +106,8 @@ static int Open( vlc_object_t * p_this )
p_sys
->
p_es
=
NULL
;
p_sys
->
i_dts
=
0
;
p_sys
->
f_fps
=
var_CreateGetFloat
(
p_demux
,
"vc1-fps"
);
if
(
p_sys
->
f_fps
<
0
.
001
)
p_sys
->
f_fps
=
0
.
0
;
if
(
p_sys
->
f_fps
<
0
.
001
f
)
p_sys
->
f_fps
=
0
.
0
f
;
/* Load the packetizer */
es_format_Init
(
&
fmt
,
VIDEO_ES
,
VLC_CODEC_VC1
);
...
...
@@ -176,8 +176,8 @@ static int Demux( demux_t *p_demux)
p_sys
->
i_dts
+=
CLOCK_FREQ
*
p_sys
->
p_packetizer
->
fmt_out
.
video
.
i_frame_rate_base
/
p_sys
->
p_packetizer
->
fmt_out
.
video
.
i_frame_rate
;
else
if
(
p_sys
->
f_fps
>
0
.
001
)
p_sys
->
i_dts
+=
(
int64_t
)((
double
)
CLOCK_FREQ
/
p_sys
->
f_fps
);
else
if
(
p_sys
->
f_fps
>
0
.
001
f
)
p_sys
->
i_dts
+=
(
int64_t
)((
float
)
CLOCK_FREQ
/
p_sys
->
f_fps
);
else
p_sys
->
i_dts
+=
CLOCK_FREQ
/
25
;
}
...
...
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