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
09b70e1c
Commit
09b70e1c
authored
Jun 11, 2006
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/packetizer/mpeg4video.c: ts/ps muxers rely on VOL being present in the stream.
parent
b7ce1c36
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
modules/packetizer/mpeg4video.c
modules/packetizer/mpeg4video.c
+18
-3
No files found.
modules/packetizer/mpeg4video.c
View file @
09b70e1c
...
...
@@ -336,22 +336,37 @@ static block_t *ParseMPEGBlock( decoder_t *p_dec, block_t *p_frag )
if
(
p_frag
->
p_buffer
[
3
]
==
0xB0
||
p_frag
->
p_buffer
[
3
]
==
0xB1
)
{
#if 0
/* Remove VOS start/end code from the original stream */
block_Release( p_frag );
#else
/* Append the block for now since ts/ps muxers rely on VOL
* being present in the stream */
block_ChainLastAppend
(
&
p_sys
->
pp_last
,
p_frag
);
#endif
return
NULL
;
}
if
(
p_frag
->
p_buffer
[
3
]
>=
0x20
&&
p_frag
->
p_buffer
[
3
]
<=
0x2f
)
{
/* Copy the complete VOL */
p_dec
->
fmt_out
.
i_extra
=
p_frag
->
i_buffer
;
if
(
p_dec
->
fmt_out
.
i_extra
!=
p_frag
->
i_buffer
)
{
p_dec
->
fmt_out
.
p_extra
=
realloc
(
p_dec
->
fmt_out
.
p_extra
,
p_dec
->
fmt_out
.
i_extra
);
realloc
(
p_dec
->
fmt_out
.
p_extra
,
p_frag
->
i_buffer
);
p_dec
->
fmt_out
.
i_extra
=
p_frag
->
i_buffer
;
}
memcpy
(
p_dec
->
fmt_out
.
p_extra
,
p_frag
->
p_buffer
,
p_frag
->
i_buffer
);
ParseVOL
(
p_dec
,
&
p_dec
->
fmt_out
,
p_dec
->
fmt_out
.
p_extra
,
p_dec
->
fmt_out
.
i_extra
);
#if 0
/* Remove from the original stream */
block_Release( p_frag );
#else
/* Append the block for now since ts/ps muxers rely on VOL
* being present in the stream */
block_ChainLastAppend
(
&
p_sys
->
pp_last
,
p_frag
);
#endif
return
NULL
;
}
else
...
...
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