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
3fc2289a
Commit
3fc2289a
authored
Dec 07, 2008
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
RTP: add QCLEP and GSM static formats (untested)
parent
95b3682a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
38 additions
and
0 deletions
+38
-0
modules/access/rtp/rtp.c
modules/access/rtp/rtp.c
+38
-0
No files found.
modules/access/rtp/rtp.c
View file @
3fc2289a
...
...
@@ -449,6 +449,19 @@ static void *pcmu_init (demux_t *demux)
return
codec_init
(
demux
,
&
fmt
);
}
/* PT=3
* GSM
*/
static
void
*
gsm_init
(
demux_t
*
demux
)
{
es_format_t
fmt
;
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_FOURCC
(
'g'
,
's'
,
'm'
,
' '
));
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_channels
=
1
;
return
codec_init
(
demux
,
&
fmt
);
}
/* PT=8
* PCMA: G.711 A-law (RFC3551)
*/
...
...
@@ -485,6 +498,19 @@ static void *l16m_init (demux_t *demux)
return
codec_init
(
demux
,
&
fmt
);
}
/* PT=12
* QCELP
*/
static
void
*
qcelp_init
(
demux_t
*
demux
)
{
es_format_t
fmt
;
es_format_Init
(
&
fmt
,
AUDIO_ES
,
VLC_FOURCC
(
'Q'
,
'c'
,
'l'
,
'p'
));
fmt
.
audio
.
i_rate
=
8000
;
fmt
.
audio
.
i_channels
=
1
;
return
codec_init
(
demux
,
&
fmt
);
}
/* PT=14
* MPA: MPEG Audio (RFC2250, §3.4)
*/
...
...
@@ -575,6 +601,12 @@ int rtp_autodetect (demux_t *demux, rtp_session_t *session,
pt
.
frequency
=
8000
;
break
;
case
3
:
msg_Dbg
(
demux
,
"detected GSM"
);
pt
.
init
=
gsm_init
;
pt
.
frequency
=
8000
;
break
;
case
8
:
msg_Dbg
(
demux
,
"detected G.711 A-law"
);
pt
.
init
=
pcma_init
;
...
...
@@ -593,6 +625,12 @@ int rtp_autodetect (demux_t *demux, rtp_session_t *session,
pt
.
frequency
=
44100
;
break
;
case
12
:
msg_Dbg
(
demux
,
"detected QCELP"
);
pt
.
init
=
qcelp_init
;
pt
.
frequency
=
8000
;
break
;
case
14
:
msg_Dbg
(
demux
,
"detected MPEG Audio"
);
pt
.
init
=
mpa_init
;
...
...
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