Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
124e58dd
Commit
124e58dd
authored
Dec 08, 2013
by
Andrey Utkin
Committed by
Jean-Baptiste Kempf
Dec 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable OPUS RTP packetization
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
2c4189d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
modules/stream_out/rtpfmt.c
modules/stream_out/rtpfmt.c
+15
-0
No files found.
modules/stream_out/rtpfmt.c
View file @
124e58dd
...
...
@@ -501,6 +501,21 @@ int rtp_get_fmt( vlc_object_t *obj, es_format_t *p_fmt, const char *mux,
rtp_fmt
->
ptname
=
"GSM"
;
rtp_fmt
->
pf_packetize
=
rtp_packetize_split
;
break
;
case
VLC_CODEC_OPUS
:
if
(
p_fmt
->
audio
.
i_channels
>
2
)
{
msg_Err
(
obj
,
"Multistream opus not supported in RTP"
" (having %d channels input)"
,
p_fmt
->
audio
.
i_channels
);
return
VLC_EGENERIC
;
}
rtp_fmt
->
ptname
=
"opus"
;
rtp_fmt
->
pf_packetize
=
rtp_packetize_split
;
rtp_fmt
->
clock_rate
=
48000
;
rtp_fmt
->
channels
=
2
;
if
(
p_fmt
->
audio
.
i_channels
==
2
)
rtp_fmt
->
fmtp
=
strdup
(
"sprop-stereo=1"
);
break
;
default:
msg_Err
(
obj
,
"cannot add this stream (unsupported "
...
...
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