Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
7aae3b8a
Commit
7aae3b8a
authored
Jan 08, 2014
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: flac: use CLOCK_FREQ
parent
85149ef4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
modules/demux/flac.c
modules/demux/flac.c
+3
-3
No files found.
modules/demux/flac.c
View file @
7aae3b8a
...
...
@@ -298,7 +298,7 @@ static int ControlSetTime( demux_t *p_demux, int64_t i_time )
i_delta_time
=
i_time
-
p_sys
->
seekpoint
[
i
]
->
i_time_offset
;
/* XXX We do exact seek if it's not too far away(45s) */
if
(
i_delta_time
<
45
*
INT64_C
(
1000000
)
)
if
(
i_delta_time
<
CLOCK_FREQ
*
45
)
{
if
(
stream_Seek
(
p_demux
->
s
,
p_sys
->
seekpoint
[
i
]
->
i_byte_offset
+
p_sys
->
i_data_pos
)
)
return
VLC_EGENERIC
;
...
...
@@ -328,7 +328,7 @@ static int ControlSetTime( demux_t *p_demux, int64_t i_time )
i_delta_offset
=
0
;
if
(
INT64_MAX
/
i_delta_time
<
(
i_next_offset
-
p_sys
->
seekpoint
[
i
]
->
i_byte_offset
)
)
i_time_align
=
1000000
;
i_time_align
=
CLOCK_FREQ
;
if
(
i_next_time
-
p_sys
->
seekpoint
[
i
]
->
i_time_offset
>
0
)
i_delta_offset
=
(
i_next_offset
-
p_sys
->
seekpoint
[
i
]
->
i_byte_offset
)
*
(
i_delta_time
/
i_time_align
)
/
...
...
@@ -500,7 +500,7 @@ static int ReadMeta( demux_t *p_demux, uint8_t **pp_streaminfo, int *pi_streami
/* */
ParseStreamInfo
(
&
i_sample_rate
,
&
i_sample_count
,
*
pp_streaminfo
);
if
(
i_sample_rate
>
0
)
p_sys
->
i_length
=
i_sample_count
*
INT64_C
(
1000000
)
/
i_sample_rate
;
p_sys
->
i_length
=
i_sample_count
*
CLOCK_FREQ
/
i_sample_rate
;
continue
;
}
else
if
(
i_type
==
META_SEEKTABLE
)
...
...
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