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
08feb323
Commit
08feb323
authored
Apr 21, 2014
by
Tristan Matthews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
speex: deduce mode from rate when decoding rtp
Fixes #5178
parent
1a9bda43
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
modules/codec/speex.c
modules/codec/speex.c
+5
-2
No files found.
modules/codec/speex.c
View file @
08feb323
...
@@ -650,9 +650,12 @@ static block_t *DecodeRtpSpeexPacket( decoder_t *p_dec, block_t **pp_block )
...
@@ -650,9 +650,12 @@ static block_t *DecodeRtpSpeexPacket( decoder_t *p_dec, block_t **pp_block )
msg_Err
(
p_dec
,
"Could not allocate a Speex header."
);
msg_Err
(
p_dec
,
"Could not allocate a Speex header."
);
return
NULL
;
return
NULL
;
}
}
speex_init_header
(
p_sys
->
p_header
,
p_sys
->
rtp_rate
,
1
,
&
speex_nb_mode
);
const
SpeexMode
*
mode
=
speex_lib_get_mode
((
p_sys
->
rtp_rate
/
8000
)
>>
1
);
speex_init_header
(
p_sys
->
p_header
,
p_sys
->
rtp_rate
,
1
,
mode
);
speex_bits_init
(
&
p_sys
->
bits
);
speex_bits_init
(
&
p_sys
->
bits
);
p_sys
->
p_state
=
speex_decoder_init
(
&
speex_nb_
mode
);
p_sys
->
p_state
=
speex_decoder_init
(
mode
);
if
(
!
p_sys
->
p_state
)
if
(
!
p_sys
->
p_state
)
{
{
msg_Err
(
p_dec
,
"Could not allocate a Speex decoder."
);
msg_Err
(
p_dec
,
"Could not allocate a Speex decoder."
);
...
...
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