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
6e8a6d28
Commit
6e8a6d28
authored
Mar 05, 2012
by
Rafaël Carré
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
DecoderFixTs: deindent, cosmetics
parent
6eeeda91
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
25 deletions
+25
-25
src/input/decoder.c
src/input/decoder.c
+25
-25
No files found.
src/input/decoder.c
View file @
6e8a6d28
...
@@ -1082,35 +1082,35 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
...
@@ -1082,35 +1082,35 @@ static void DecoderFixTs( decoder_t *p_dec, mtime_t *pi_ts0, mtime_t *pi_ts1,
const
mtime_t
i_es_delay
=
p_owner
->
i_ts_delay
;
const
mtime_t
i_es_delay
=
p_owner
->
i_ts_delay
;
if
(
p_clock
)
if
(
!
p_clock
)
{
return
;
const
bool
b_ephemere
=
pi_ts1
&&
*
pi_ts0
==
*
pi_ts1
;
int
i_rate
;
if
(
*
pi_ts0
>
VLC_TS_INVALID
)
const
bool
b_ephemere
=
pi_ts1
&&
*
pi_ts0
==
*
pi_ts1
;
{
int
i_rate
;
*
pi_ts0
+=
i_es_delay
;
if
(
pi_ts1
&&
*
pi_ts1
>
VLC_TS_INVALID
)
*
pi_ts1
+=
i_es_delay
;
if
(
input_clock_ConvertTS
(
p_clock
,
&
i_rate
,
pi_ts0
,
pi_ts1
,
i_ts_bound
)
)
*
pi_ts0
=
VLC_TS_INVALID
;
}
else
{
i_rate
=
input_clock_GetRate
(
p_clock
);
}
/* Do not create ephemere data because of rounding errors */
if
(
*
pi_ts0
>
VLC_TS_INVALID
)
if
(
!
b_ephemere
&&
pi_ts1
&&
*
pi_ts0
==
*
pi_ts1
)
{
*
pi_ts1
+=
1
;
*
pi_ts0
+=
i_es_delay
;
if
(
pi_ts1
&&
*
pi_ts1
>
VLC_TS_INVALID
)
*
pi_ts1
+=
i_es_delay
;
if
(
input_clock_ConvertTS
(
p_clock
,
&
i_rate
,
pi_ts0
,
pi_ts1
,
i_ts_bound
)
)
*
pi_ts0
=
VLC_TS_INVALID
;
}
else
{
i_rate
=
input_clock_GetRate
(
p_clock
);
}
if
(
pi_duration
)
/* Do not create ephemere data because of rounding errors */
*
pi_duration
=
(
*
pi_duration
*
i_rate
+
if
(
!
b_ephemere
&&
pi_ts1
&&
*
pi_ts0
==
*
pi_ts1
)
INPUT_RATE_DEFAULT
-
1
)
/
INPUT_RATE_DEFAULT
;
*
pi_ts1
+=
1
;
if
(
pi_rate
)
if
(
pi_duration
)
*
pi_rate
=
i_rate
;
*
pi_duration
=
(
*
pi_duration
*
i_rate
+
INPUT_RATE_DEFAULT
-
1
)
}
/
INPUT_RATE_DEFAULT
;
if
(
pi_rate
)
*
pi_rate
=
i_rate
;
}
}
static
bool
DecoderIsExitRequested
(
decoder_t
*
p_dec
)
static
bool
DecoderIsExitRequested
(
decoder_t
*
p_dec
)
...
...
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