Commit 0ba44a03 authored by Eugen Dedu's avatar Eugen Dedu

Fix loading of codecs without an encoding name, e.g. MS-IMA-ADPCM

parent ca2fff0d
......@@ -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 ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment