Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
67e19f8a
Commit
67e19f8a
authored
Nov 13, 2005
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport [13191] and [13192] once again
parent
e7377ab3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
2 deletions
+6
-2
modules/demux/mpeg/mpga.c
modules/demux/mpeg/mpga.c
+1
-1
src/input/clock.c
src/input/clock.c
+4
-1
src/input/input_internal.h
src/input/input_internal.h
+1
-0
No files found.
modules/demux/mpeg/mpga.c
View file @
67e19f8a
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
#include "vlc_codec.h"
#include "vlc_codec.h"
#include "vlc_meta.h"
#include "vlc_meta.h"
#define MPGA_PACKET_SIZE
4096
#define MPGA_PACKET_SIZE
1024
/*****************************************************************************
/*****************************************************************************
* Module descriptor
* Module descriptor
...
...
src/input/clock.c
View file @
67e19f8a
...
@@ -133,6 +133,7 @@ void input_ClockInit( input_clock_t *cl, vlc_bool_t b_master, int i_cr_average )
...
@@ -133,6 +133,7 @@ void input_ClockInit( input_clock_t *cl, vlc_bool_t b_master, int i_cr_average )
cl
->
last_cr
=
0
;
cl
->
last_cr
=
0
;
cl
->
last_pts
=
0
;
cl
->
last_pts
=
0
;
cl
->
last_sysdate
=
0
;
cl
->
cr_ref
=
0
;
cl
->
cr_ref
=
0
;
cl
->
sysdate_ref
=
0
;
cl
->
sysdate_ref
=
0
;
cl
->
delta_cr
=
0
;
cl
->
delta_cr
=
0
;
...
@@ -264,6 +265,7 @@ void input_ClockSetPCR( input_thread_t *p_input,
...
@@ -264,6 +265,7 @@ void input_ClockSetPCR( input_thread_t *p_input,
else
else
{
{
cl
->
last_cr
=
0
;
cl
->
last_cr
=
0
;
cl
->
last_sysdate
=
0
;
cl
->
delta_cr
=
0
;
cl
->
delta_cr
=
0
;
cl
->
i_delta_cr_residue
=
0
;
cl
->
i_delta_cr_residue
=
0
;
}
}
...
@@ -308,7 +310,7 @@ void input_ClockSetPCR( input_thread_t *p_input,
...
@@ -308,7 +310,7 @@ void input_ClockSetPCR( input_thread_t *p_input,
input_ClockManageControl( p_input, cl, i_clock );
input_ClockManageControl( p_input, cl, i_clock );
#endif
#endif
}
}
else
else
if
(
mdate
()
-
cl
->
last_sysdate
>
200000
)
{
{
/* Smooth clock reference variations. */
/* Smooth clock reference variations. */
mtime_t
i_extrapoled_clock
=
ClockCurrent
(
p_input
,
cl
);
mtime_t
i_extrapoled_clock
=
ClockCurrent
(
p_input
,
cl
);
...
@@ -324,6 +326,7 @@ void input_ClockSetPCR( input_thread_t *p_input,
...
@@ -324,6 +326,7 @@ void input_ClockSetPCR( input_thread_t *p_input,
+
cl
->
i_delta_cr_residue
)
+
cl
->
i_delta_cr_residue
)
%
cl
->
i_cr_average
;
%
cl
->
i_cr_average
;
cl
->
delta_cr
=
delta_cr
;
cl
->
delta_cr
=
delta_cr
;
cl
->
last_sysdate
=
mdate
();
}
}
}
}
}
}
...
...
src/input/input_internal.h
View file @
67e19f8a
...
@@ -133,6 +133,7 @@ typedef struct
...
@@ -133,6 +133,7 @@ typedef struct
/* Synchronization information */
/* Synchronization information */
mtime_t
delta_cr
;
mtime_t
delta_cr
;
mtime_t
cr_ref
,
sysdate_ref
;
mtime_t
cr_ref
,
sysdate_ref
;
mtime_t
last_sysdate
;
mtime_t
last_cr
;
/* reference to detect unexpected stream
mtime_t
last_cr
;
/* reference to detect unexpected stream
* discontinuities */
* discontinuities */
mtime_t
last_pts
;
mtime_t
last_pts
;
...
...
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