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
3414682c
Commit
3414682c
authored
Feb 29, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder synchro: cosmetics
parent
245b9e9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
19 deletions
+17
-19
src/input/decoder_synchro.c
src/input/decoder_synchro.c
+17
-19
No files found.
src/input/decoder_synchro.c
View file @
3414682c
...
@@ -369,15 +369,15 @@ void decoder_SynchroEnd( decoder_synchro_t * p_synchro, int i_coding_type,
...
@@ -369,15 +369,15 @@ void decoder_SynchroEnd( decoder_synchro_t * p_synchro, int i_coding_type,
{
{
mtime_t
tau
;
mtime_t
tau
;
if
(
!
b_garbage
)
if
(
b_garbage
)
{
return
;
tau
=
mdate
()
-
p_synchro
->
decoding_start
;
tau
=
mdate
()
-
p_synchro
->
decoding_start
;
/* If duration too high, something happened (pause ?), so don't
/* If duration too high, something happened (pause ?), so don't
* take it into account. */
* take it into account. */
if
(
tau
<
3
*
p_synchro
->
p_tau
[
i_coding_type
]
if
(
tau
<
3
*
p_synchro
->
p_tau
[
i_coding_type
]
||
||
(
!
p_synchro
->
pi_meaningful
[
i_coding_type
]
(
!
p_synchro
->
pi_meaningful
[
i_coding_type
]
&&
tau
<
MAX_VALID_TAU
)
)
&&
tau
<
MAX_VALID_TAU
)
)
{
{
/* Mean with average tau, to ensure stability. */
/* Mean with average tau, to ensure stability. */
p_synchro
->
p_tau
[
i_coding_type
]
=
p_synchro
->
p_tau
[
i_coding_type
]
=
...
@@ -389,7 +389,6 @@ void decoder_SynchroEnd( decoder_synchro_t * p_synchro, int i_coding_type,
...
@@ -389,7 +389,6 @@ void decoder_SynchroEnd( decoder_synchro_t * p_synchro, int i_coding_type,
p_synchro
->
pi_meaningful
[
i_coding_type
]
++
;
p_synchro
->
pi_meaningful
[
i_coding_type
]
++
;
}
}
}
}
}
}
}
/*****************************************************************************
/*****************************************************************************
...
@@ -416,8 +415,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
...
@@ -416,8 +415,7 @@ void decoder_SynchroNewPicture( decoder_synchro_t * p_synchro, int i_coding_type
switch
(
i_coding_type
)
switch
(
i_coding_type
)
{
{
case
I_CODING_TYPE
:
case
I_CODING_TYPE
:
if
(
p_synchro
->
i_eta_p
if
(
p_synchro
->
i_eta_p
&&
p_synchro
->
i_eta_p
!=
p_synchro
->
i_n_p
)
&&
p_synchro
->
i_eta_p
!=
p_synchro
->
i_n_p
)
{
{
#if 0
#if 0
if( !p_synchro->b_quiet )
if( !p_synchro->b_quiet )
...
...
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