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
294d2ef0
Commit
294d2ef0
authored
Nov 22, 2003
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ts: fixes.
parent
9d3e0fb5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+8
-2
No files found.
modules/mux/mpeg/ts.c
View file @
294d2ef0
...
...
@@ -2,7 +2,7 @@
* ts.c: MPEG-II TS Muxer
*****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN
* $Id: ts.c,v 1.3
7 2003/11/21 15:32:08
fenrir Exp $
* $Id: ts.c,v 1.3
8 2003/11/22 16:48:49
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
* Eric Petit <titer@videolan.org>
...
...
@@ -664,7 +664,7 @@ static int Mux( sout_mux_t *p_mux )
sout_input_t
*
p_input
=
p_mux
->
pp_inputs
[
i
];
ts_stream_t
*
p_stream
=
(
ts_stream_t
*
)
p_input
->
p_sys
;
if
(
p_stream
->
i_pes_length
<=
p_sys
->
i_caching_delay
||
if
(
(
p_stream
==
p_pcr_stream
&&
p_stream
->
i_pes_length
<=
p_sys
->
i_caching_delay
)
||
p_stream
->
i_pes_dts
+
p_stream
->
i_pes_length
<
p_pcr_stream
->
i_pes_dts
+
p_pcr_stream
->
i_pes_length
)
{
/* Need more data */
...
...
@@ -685,6 +685,12 @@ static int Mux( sout_mux_t *p_mux )
b_ok
=
VLC_FALSE
;
p_data
=
sout_FifoGet
(
p_input
->
p_fifo
);
if
(
p_input
->
p_fifo
->
i_depth
>
0
)
{
sout_buffer_t
*
p_next
=
sout_FifoShow
(
p_input
->
p_fifo
);
p_data
->
i_length
=
p_next
->
i_dts
-
p_data
->
i_dts
;
}
if
(
(
p_pcr_stream
->
i_pes_dts
>
0
&&
p_data
->
i_dts
-
2000000
>
p_pcr_stream
->
i_pes_dts
+
p_pcr_stream
->
i_pes_length
)
||
p_data
->
i_dts
<
p_stream
->
i_pes_dts
||
...
...
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