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
96377d38
Commit
96377d38
authored
Aug 05, 2005
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/stream_out/transcode.c: Fixed DTS madness after pausing when
--sout-transcode-fps is in use.
parent
b314c950
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
modules/stream_out/transcode.c
modules/stream_out/transcode.c
+14
-4
No files found.
modules/stream_out/transcode.c
View file @
96377d38
...
...
@@ -37,6 +37,8 @@
#include "vlc_filter.h"
#include "osd.h"
#define MASTER_SYNC_MAX_DRIFT 100000
/*****************************************************************************
* Module descriptor
*****************************************************************************/
...
...
@@ -1201,8 +1203,10 @@ static int transcode_audio_process( sout_stream_t *p_stream,
if
(
p_sys
->
b_master_sync
)
{
mtime_t
i_dts
=
date_Get
(
&
id
->
interpolated_pts
)
+
1
;
if
(
i_dts
==
1
)
if
(
p_audio_buf
->
start_date
-
i_dts
>
MASTER_SYNC_MAX_DRIFT
||
p_audio_buf
->
start_date
-
i_dts
<
-
MASTER_SYNC_MAX_DRIFT
)
{
msg_Dbg
(
p_stream
,
"drift is too high, resetting master sync"
);
date_Set
(
&
id
->
interpolated_pts
,
p_audio_buf
->
start_date
);
i_dts
=
p_audio_buf
->
start_date
+
1
;
}
...
...
@@ -1609,8 +1613,10 @@ static int transcode_video_process( sout_stream_t *p_stream,
mtime_t
i_pts
;
i_pts
=
date_Get
(
&
id
->
interpolated_pts
)
+
1
;
if
(
i_pts
==
1
)
if
(
p_pic
->
date
-
i_pts
>
MASTER_SYNC_MAX_DRIFT
||
p_pic
->
date
-
i_pts
<
-
MASTER_SYNC_MAX_DRIFT
)
{
msg_Dbg
(
p_stream
,
"drift is too high, resetting master sync"
);
date_Set
(
&
id
->
interpolated_pts
,
p_pic
->
date
);
i_pts
=
p_pic
->
date
+
1
;
}
...
...
@@ -1849,8 +1855,10 @@ static int transcode_video_process( sout_stream_t *p_stream,
if
(
p_sys
->
b_master_sync
)
{
mtime_t
i_pts
=
date_Get
(
&
id
->
interpolated_pts
)
+
1
;
if
(
i_pts
==
1
)
if
(
p_pic
->
date
-
i_pts
>
MASTER_SYNC_MAX_DRIFT
||
p_pic
->
date
-
i_pts
<
-
MASTER_SYNC_MAX_DRIFT
)
{
msg_Dbg
(
p_stream
,
"drift is too high, resetting master sync"
);
date_Set
(
&
id
->
interpolated_pts
,
p_pic
->
date
);
i_pts
=
p_pic
->
date
+
1
;
}
...
...
@@ -1860,8 +1868,10 @@ static int transcode_video_process( sout_stream_t *p_stream,
if
(
p_sys
->
b_master_sync
&&
i_duplicate
>
1
)
{
mtime_t
i_pts
=
date_Get
(
&
id
->
interpolated_pts
)
+
1
;
if
(
i_pts
==
1
)
if
(
p_pic
->
date
-
i_pts
>
MASTER_SYNC_MAX_DRIFT
||
p_pic
->
date
-
i_pts
<
-
MASTER_SYNC_MAX_DRIFT
)
{
msg_Dbg
(
p_stream
,
"drift is too high, resetting master sync"
);
date_Set
(
&
id
->
interpolated_pts
,
p_pic
->
date
);
i_pts
=
p_pic
->
date
+
1
;
}
...
...
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