diff --git a/src/audio/codec.cpp b/src/audio/codec.cpp index be63c9e32..01eaca0a5 100644 --- a/src/audio/codec.cpp +++ b/src/audio/codec.cpp @@ -46,7 +46,7 @@ #include "audio/codec.h" #include "audio/utils.h" -#include "compat/strings.h" // strdupa +#include "compat/strings.h" // strdup, strcasecmp #include "debug.h" #include "lib_common.h" #include "utils/macros.h" @@ -389,6 +389,12 @@ get_audio_codec(const char *codec) return it.first; } } + if (strcasecmp(codec, "PCMA") == 0) { + return AC_ALAW; + } + if (strcasecmp(codec, "PCMU") == 0) { + return AC_MULAW; + } return AC_NONE; }