Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
455c49fb
Commit
455c49fb
authored
May 17, 2005
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/mux/mpeg/ts.c: fixed FixPES().
parent
fb751f6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
modules/mux/mpeg/ts.c
modules/mux/mpeg/ts.c
+19
-12
No files found.
modules/mux/mpeg/ts.c
View file @
455c49fb
...
...
@@ -180,9 +180,9 @@ vlc_module_end();
* Local data structures
*****************************************************************************/
static
const
char
*
ppsz_sout_options
[]
=
{
"pid-video"
,
"pid-audio"
,
"pid-spu"
,
"pid-pmt"
,
"tsid"
,
"program-pmt"
,
"es-id-pid"
,
"
shaping"
,
"pcr"
,
"bmin"
,
"bmax"
,
"use-key-frames"
,
"dts-delay
"
,
"csa-ck"
,
"crypt-audio"
,
"pid-video"
,
"pid-audio"
,
"pid-spu"
,
"pid-pmt"
,
"tsid"
,
"program-pmt"
,
"
es-id-pid"
,
"shaping"
,
"pcr"
,
"bmin"
,
"bmax"
,
"use-key-frames
"
,
"
dts-delay"
,
"
csa-ck"
,
"crypt-audio"
,
NULL
};
...
...
@@ -1344,6 +1344,8 @@ static block_t *FixPES( sout_mux_t *p_mux, block_fifo_t *p_fifo )
else
{
block_t
*
p_next
;
int
i_copy
;
p_data
=
block_FifoGet
(
p_fifo
);
p_data
=
block_Realloc
(
p_data
,
0
,
STD_PES_PAYLOAD
);
p_next
=
block_FifoShow
(
p_fifo
);
...
...
@@ -1353,17 +1355,22 @@ static block_t *FixPES( sout_mux_t *p_mux, block_fifo_t *p_fifo )
p_data
->
i_pts
=
p_next
->
i_pts
;
p_data
->
i_dts
=
p_next
->
i_dts
;
}
i_copy
=
__MIN
(
STD_PES_PAYLOAD
-
i_size
,
p_next
->
i_buffer
);
p_mux
->
p_vlc
->
pf_memcpy
(
&
p_data
->
p_buffer
[
i_size
],
p_next
->
p_buffer
,
STD_PES_PAYLOAD
-
i_size
);
p_next
->
i_pts
+=
p_next
->
i_length
*
(
STD_PES_PAYLOAD
-
i_size
)
/
p_next
->
i_buffer
;
p_next
->
i_dts
+=
p_next
->
i_length
*
(
STD_PES_PAYLOAD
-
i_size
)
/
p_next
->
i_buffer
;
p_next
->
i_length
-=
p_next
->
i_length
*
(
STD_PES_PAYLOAD
-
i_size
)
/
p_next
->
i_buffer
;
p_next
->
i_buffer
-=
STD_PES_PAYLOAD
-
i_size
;
p_next
->
p_buffer
+=
STD_PES_PAYLOAD
-
i_size
;
i_copy
);
p_next
->
i_pts
+=
p_next
->
i_length
*
i_copy
/
p_next
->
i_buffer
;
p_next
->
i_dts
+=
p_next
->
i_length
*
i_copy
/
p_next
->
i_buffer
;
p_next
->
i_length
-=
p_next
->
i_length
*
i_copy
/
p_next
->
i_buffer
;
p_next
->
i_buffer
-=
i_copy
;
p_next
->
p_buffer
+=
i_copy
;
p_next
->
i_flags
|=
BLOCK_FLAG_NO_KEYFRAME
;
if
(
!
p_next
->
i_buffer
)
{
p_next
=
block_FifoGet
(
p_fifo
);
block_Release
(
p_next
);
}
return
p_data
;
}
}
...
...
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