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
6124f982
Commit
6124f982
authored
Oct 09, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
assert that audio date divider is non-nul, refs #2169
parent
c8a6cbfe
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
src/audio_output/common.c
src/audio_output/common.c
+3
-1
No files found.
src/audio_output/common.c
View file @
6124f982
...
...
@@ -479,6 +479,7 @@ void aout_FifoDestroy( aout_instance_t * p_aout, aout_fifo_t * p_fifo )
*****************************************************************************/
void
aout_DateInit
(
audio_date_t
*
p_date
,
uint32_t
i_divider
)
{
assert
(
i_divider
);
p_date
->
date
=
0
;
p_date
->
i_divider
=
i_divider
;
p_date
->
i_remainder
=
0
;
...
...
@@ -515,7 +516,8 @@ mtime_t aout_DateGet( const audio_date_t * p_date )
*****************************************************************************/
mtime_t
aout_DateIncrement
(
audio_date_t
*
p_date
,
uint32_t
i_nb_samples
)
{
mtime_t
i_dividend
=
(
mtime_t
)
i_nb_samples
*
1000000
;
mtime_t
i_dividend
=
INT64_C
(
1000000
)
*
i_nb_samples
;
assert
(
p_date
->
i_divider
);
/* uninitialized audio_data_t ? */
p_date
->
date
+=
i_dividend
/
p_date
->
i_divider
;
p_date
->
i_remainder
+=
(
int
)(
i_dividend
%
p_date
->
i_divider
);
if
(
p_date
->
i_remainder
>=
p_date
->
i_divider
)
...
...
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