IAX: Don't try and convert an invalid codec to a mask
Bug: 15251 Change-Id: I1929e96766c32654f3b41c522df5cf22a1c60516 Reviewed-on: https://code.wireshark.org/review/30483 Reviewed-by: Johannes Altmanninger <aclopte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
parent
009a970cb2
commit
1b94fe7da3
|
@ -480,7 +480,7 @@ static const value_string iax_ies_type[] = {
|
|||
};
|
||||
static value_string_ext iax_ies_type_ext = VALUE_STRING_EXT_INIT(iax_ies_type);
|
||||
|
||||
#define CODEC_MASK(codec) (G_GUINT64_CONSTANT(1) << (codec))
|
||||
#define CODEC_MASK(codec) ((codec) == (guint32)-1 ? 0 : (G_GUINT64_CONSTANT(1) << (codec)))
|
||||
|
||||
static const val64_string codec_types[] = {
|
||||
{CODEC_MASK(AST_FORMAT_G723_1), "G.723.1 compression"},
|
||||
|
|
Loading…
Reference in New Issue