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
05c3e530
Commit
05c3e530
authored
Nov 29, 2000
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enhancement for very slooow machines.
parent
f666ec10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
13 deletions
+27
-13
src/video_parser/vpar_synchro.c
src/video_parser/vpar_synchro.c
+27
-13
No files found.
src/video_parser/vpar_synchro.c
View file @
05c3e530
...
@@ -247,9 +247,15 @@ boolean_t vpar_SynchroChoose( vpar_thread_t * p_vpar, int i_coding_type,
...
@@ -247,9 +247,15 @@ boolean_t vpar_SynchroChoose( vpar_thread_t * p_vpar, int i_coding_type,
pts
=
S
.
current_pts
+
period
*
S
.
i_n_b
;
pts
=
S
.
current_pts
+
period
*
S
.
i_n_b
;
}
}
b_decode
=
(
(
1
+
S
.
i_n_p
*
(
S
.
i_n_b
+
1
))
*
period
>
if
(
(
1
+
S
.
i_n_p
*
(
S
.
i_n_b
+
1
))
*
period
>
S
.
p_tau
[
I_CODING_TYPE
]
)
||
S
.
p_tau
[
I_CODING_TYPE
]
)
(
(
pts
-
now
)
>
(
TAU_PRIME
(
I_CODING_TYPE
)
+
DELTA
)
);
{
b_decode
=
1
;
}
else
{
b_decode
=
(
pts
-
now
)
>
(
TAU_PRIME
(
I_CODING_TYPE
)
+
DELTA
);
}
if
(
!
b_decode
)
if
(
!
b_decode
)
intf_WarnMsg
(
3
,
"vpar synchro warning: trashing I
\n
"
);
intf_WarnMsg
(
3
,
"vpar synchro warning: trashing I
\n
"
);
break
;
break
;
...
@@ -270,20 +276,28 @@ boolean_t vpar_SynchroChoose( vpar_thread_t * p_vpar, int i_coding_type,
...
@@ -270,20 +276,28 @@ boolean_t vpar_SynchroChoose( vpar_thread_t * p_vpar, int i_coding_type,
pts
=
S
.
current_pts
+
period
*
S
.
i_n_b
;
pts
=
S
.
current_pts
+
period
*
S
.
i_n_b
;
}
}
if
(
(
S
.
i_n_b
+
1
)
*
period
>
S
.
p_tau
[
P_CODING_TYPE
]
)
if
(
(
1
+
S
.
i_n_p
*
(
S
.
i_n_b
+
1
))
*
period
>
S
.
p_tau
[
I_CODING_TYPE
]
)
{
{
/* Security in case we're _really_ late */
if
(
(
S
.
i_n_b
+
1
)
*
period
>
S
.
p_tau
[
P_CODING_TYPE
]
)
b_decode
=
(
pts
-
now
>
0
);
{
/* Security in case we're _really_ late */
b_decode
=
(
pts
-
now
>
0
);
}
else
{
b_decode
=
(
pts
-
now
)
>
(
TAU_PRIME
(
P_CODING_TYPE
)
+
DELTA
);
/* next I */
b_decode
&=
(
pts
-
now
+
period
*
(
(
S
.
i_n_p
-
S
.
i_eta_p
-
1
)
*
(
1
+
S
.
i_n_b
)
-
1
))
>
(
TAU_PRIME
(
P_CODING_TYPE
)
+
TAU_PRIME
(
I_CODING_TYPE
)
+
DELTA
);
}
}
}
else
else
{
{
b_decode
=
(
pts
-
now
)
>
(
TAU_PRIME
(
P_CODING_TYPE
)
+
DELTA
);
b_decode
=
0
;
/* next I */
b_decode
&=
(
pts
-
now
+
period
*
(
(
S
.
i_n_p
-
S
.
i_eta_p
-
1
)
*
(
1
+
S
.
i_n_b
)
-
1
))
>
(
TAU_PRIME
(
P_CODING_TYPE
)
+
TAU_PRIME
(
I_CODING_TYPE
)
+
DELTA
);
}
}
break
;
break
;
...
...
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