Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Archive
ekiga
Commits
0ba44a03
Commit
0ba44a03
authored
Dec 21, 2011
by
Eugen Dedu
Browse files
Fix loading of codecs without an encoding name, e.g. MS-IMA-ADPCM
parent
ca2fff0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/engine/components/opal/opal-codec-description.cpp
View file @
0ba44a03
...
...
@@ -54,7 +54,11 @@ CodecDescription::CodecDescription (OpalMediaFormat & format)
:
Ekiga
::
CodecDescription
()
{
name
=
(
const
char
*
)
format
.
GetEncodingName
();
if
(
name
==
"G722"
)
// if a codec does not have a IANA encoding name, use its name instead
// (it is the case for MS-IMA-ADPCM for ex.)
if
(
name
.
empty
())
name
=
(
const
char
*
)
format
.
GetName
();
if
(
name
==
"G722"
)
// G722 has the wrong rate in RFC
rate
=
16000
;
else
rate
=
format
.
GetClockRate
();
...
...
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