Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
641da394
Commit
641da394
authored
Jun 10, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed decoder_SynchroChoose when buffering.
parent
bb1d1eb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/input/decoder_synchro.c
src/input/decoder_synchro.c
+9
-2
No files found.
src/input/decoder_synchro.c
View file @
641da394
...
...
@@ -251,8 +251,7 @@ bool decoder_SynchroChoose( decoder_synchro_t * p_synchro, int i_coding_type,
pts
=
decoder_GetDisplayDate
(
p_synchro
->
p_dec
,
S
.
current_pts
)
+
period
*
(
S
.
i_n_b
+
2
);
}
if
(
(
1
+
S
.
i_n_p
*
(
S
.
i_n_b
+
1
))
*
period
>
S
.
p_tau
[
I_CODING_TYPE
]
)
if
(
(
1
+
S
.
i_n_p
*
(
S
.
i_n_b
+
1
))
*
period
>
S
.
p_tau
[
I_CODING_TYPE
]
)
{
b_decode
=
1
;
}
...
...
@@ -260,6 +259,9 @@ bool decoder_SynchroChoose( decoder_synchro_t * p_synchro, int i_coding_type,
{
b_decode
=
(
pts
-
now
)
>
(
TAU_PRIME
(
I_CODING_TYPE
)
+
DELTA
);
}
if
(
pts
<=
VLC_TS_INVALID
)
b_decode
=
1
;
if
(
!
b_decode
&&
!
p_synchro
->
b_quiet
)
{
msg_Warn
(
p_synchro
->
p_dec
,
...
...
@@ -308,6 +310,8 @@ bool decoder_SynchroChoose( decoder_synchro_t * p_synchro, int i_coding_type,
{
b_decode
=
0
;
}
if
(
p_synchro
->
i_nb_ref
>=
1
&&
pts
<=
VLC_TS_INVALID
)
b_decode
=
1
;
break
;
case
B_CODING_TYPE
:
...
...
@@ -325,6 +329,9 @@ bool decoder_SynchroChoose( decoder_synchro_t * p_synchro, int i_coding_type,
{
b_decode
=
0
;
}
if
(
p_synchro
->
i_nb_ref
>=
2
&&
pts
<=
VLC_TS_INVALID
)
b_decode
=
1
;
break
;
}
if
(
!
b_decode
)
...
...
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