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
048a0f69
Commit
048a0f69
authored
Sep 11, 2007
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix SDP generation with non-RTP mux
parent
a31e5798
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
26 deletions
+21
-26
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+21
-26
No files found.
modules/stream_out/rtp.c
View file @
048a0f69
...
...
@@ -419,21 +419,11 @@ static int Open( vlc_object_t *p_this )
if
(
psz
!=
NULL
)
{
sout_stream_id_t
*
id
;
const
char
*
psz_rtpmap
;
int
i_payload_type
;
/* Check muxer type */
if
(
!
strncasecmp
(
psz
,
"ps"
,
2
)
||
!
strncasecmp
(
psz
,
"mpeg1"
,
5
)
)
{
psz_rtpmap
=
"MP2P/90000"
;
}
else
if
(
!
strncasecmp
(
psz
,
"ts"
,
2
)
)
{
psz_rtpmap
=
"MP2T/90000"
;
i_payload_type
=
33
;
}
else
if
(
strncasecmp
(
psz
,
"ps"
,
2
)
&&
strncasecmp
(
psz
,
"mpeg1"
,
5
)
&&
strncasecmp
(
psz
,
"ts"
,
2
)
)
{
msg_Err
(
p_stream
,
"unsupported muxer type for RTP (only TS/PS)"
);
free
(
psz
);
...
...
@@ -468,9 +458,6 @@ static int Open( vlc_object_t *p_this )
return
VLC_EGENERIC
;
}
id
->
psz_rtpmap
=
strdup
(
psz_rtpmap
);
id
->
i_payload_type
=
i_payload_type
;
p_sys
->
packet
=
NULL
;
p_stream
->
pf_add
=
MuxAdd
;
...
...
@@ -736,15 +723,8 @@ char *SDPGenerate( const sout_stream_t *p_stream, const char *rtsp_url )
continue
;
sdp_AddMedia
(
&
psz_sdp
,
mime_major
,
"RTP/AVP"
,
inclport
*
id
->
i_port
,
id
->
i_payload_type
,
VLC_FALSE
,
id
->
i_bitrate
,
id
->
psz_rtpmap
,
id
->
psz_fmtp
);
#if 0
if ( id->i_bitrate )
{
p += sprintf(p,"b=AS:%d\r\n",id->i_bitrate);
}
#endif
id
->
i_payload_type
,
VLC_FALSE
,
id
->
i_bitrate
,
id
->
psz_rtpmap
,
id
->
psz_fmtp
);
if
(
rtsp_url
!=
NULL
)
sdp_AddAttribute
(
&
psz_sdp
,
"control"
,
"/trackID=%d"
,
i
);
...
...
@@ -892,7 +872,22 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
}
if
(
p_fmt
==
NULL
)
;
{
char
*
psz
=
var_GetNonEmptyString
(
p_stream
,
SOUT_CFG_PREFIX
"mux"
);
if
(
psz
==
NULL
)
/* Uho! */
;
else
if
(
strncmp
(
psz
,
"ts"
,
2
)
==
0
)
{
id
->
i_payload_type
=
33
;
id
->
psz_rtpmap
=
strdup
(
"MP2T/90000"
);
}
else
{
id
->
psz_rtpmap
=
strdup
(
"MP2P/90000"
);
}
}
else
switch
(
p_fmt
->
i_codec
)
{
...
...
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