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
a856e366
Commit
a856e366
authored
Oct 07, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Skip nal type 7 and 8 in RTP muxing.
parent
febe7d21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+6
-0
No files found.
modules/stream_out/rtp.c
View file @
a856e366
...
@@ -1207,6 +1207,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
...
@@ -1207,6 +1207,8 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
}
}
else
else
id
->
psz_fmtp
=
strdup
(
"packetization-mode=1"
);
id
->
psz_fmtp
=
strdup
(
"packetization-mode=1"
);
if
(
p_fmt
->
i_extra
>
0
)
msg_Dbg
(
p_stream
,
"WE HAVE %d bytes extra data"
,
p_fmt
->
i_extra
);
break
;
break
;
case
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
):
case
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
):
...
@@ -2502,6 +2504,10 @@ static int rtp_packetize_h264( sout_stream_t *p_stream, sout_stream_id_t *id,
...
@@ -2502,6 +2504,10 @@ static int rtp_packetize_h264( sout_stream_t *p_stream, sout_stream_id_t *id,
p_data
+=
3
;
p_data
+=
3
;
i_data
-=
3
;
i_data
-=
3
;
i_nal_type
=
p_data
[
0
]
&
0x1f
;
i_nal_type
=
p_data
[
0
]
&
0x1f
;
/* Skip global headers */
if
(
i_nal_type
==
7
||
i_nal_type
==
8
)
return
VLC_SUCCESS
;
if
(
i_data
<=
i_max
)
/* The whole pack will fit in one rtp payload */
if
(
i_data
<=
i_max
)
/* The whole pack will fit in one rtp payload */
{
{
...
...
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