Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
3c5962b1
Commit
3c5962b1
authored
Nov 04, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: cosmetic fixes
parent
f380c1a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
18 deletions
+13
-18
modules/access/rtp/rtp.c
modules/access/rtp/rtp.c
+13
-18
No files found.
modules/access/rtp/rtp.c
View file @
3c5962b1
...
...
@@ -690,20 +690,22 @@ int rtp_autodetect (demux_t *demux, rtp_session_t *session,
/*
* If the rtp payload type is unknown then check demux if it is specified
*/
if
((
strcmp
(
demux
->
psz_demux
,
"h264"
)
==
0
)
||
(
strcmp
(
demux
->
psz_demux
,
"ts"
)
==
0
))
if
(
!
strcmp
(
demux
->
psz_demux
,
"h264"
)
||
!
strcmp
(
demux
->
psz_demux
,
"ts"
))
{
msg_Dbg
(
demux
,
"rtp autodetect specified demux=%s"
,
demux
->
psz_demux
);
pt
.
init
=
demux_init
;
pt
.
destroy
=
stream_destroy
;
pt
.
decode
=
stream_decode
;
pt
.
frequency
=
90000
;
break
;
msg_Dbg
(
demux
,
"dynamic payload format %s specified by demux"
,
demux
->
psz_demux
);
pt
.
init
=
demux_init
;
pt
.
destroy
=
stream_destroy
;
pt
.
decode
=
stream_decode
;
pt
.
frequency
=
90000
;
break
;
}
else
if
(
ptype
>=
96
)
if
(
ptype
>=
96
)
{
char
*
dynamic
=
var_InheritString
(
demux
,
"rtp-dynamic-pt"
);
if
(
dynamic
==
NULL
)
return
-
1
;
;
else
if
(
!
strcmp
(
dynamic
,
"theora"
))
{
msg_Dbg
(
demux
,
"assuming Theora Encoded Video"
);
...
...
@@ -713,18 +715,11 @@ int rtp_autodetect (demux_t *demux, rtp_session_t *session,
pt
.
frequency
=
90000
;
}
else
{
msg_Err
(
demux
,
"invalid dynamic payload format `%s' "
"specified"
,
dynamic
);
free
(
dynamic
);
return
-
1
;
}
free
(
dynamic
);
}
else
{
return
-
1
;
free
(
dynamic
);
}
return
-
1
;
}
rtp_add_type
(
demux
,
session
,
&
pt
);
return
0
;
...
...
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