Commit 2f8e4828 authored by heshanyun's avatar heshanyun

modify decode error about supportedCodecList in NAS message

parent b05f9ca1
...@@ -43,13 +43,17 @@ int decode_supported_codec_list(SupportedCodecList *supportedcodeclist, uint8_t ...@@ -43,13 +43,17 @@ int decode_supported_codec_list(SupportedCodecList *supportedcodeclist, uint8_t
CHECK_LENGTH_DECODER(len - decoded, ielen); CHECK_LENGTH_DECODER(len - decoded, ielen);
supportedcodeclist->systemidentification = *(buffer + decoded); supportedcodeclist->systemidentification = *(buffer + decoded);
decoded++; decoded++;
ielen--;
supportedcodeclist->lengthofbitmap = *(buffer + decoded); supportedcodeclist->lengthofbitmap = *(buffer + decoded);
decoded++; decoded++;
ielen--;
//IES_DECODE_U16(supportedcodeclist->codecbitmap, *(buffer + decoded)); //IES_DECODE_U16(supportedcodeclist->codecbitmap, *(buffer + decoded));
IES_DECODE_U16(buffer, decoded, supportedcodeclist->codecbitmap); IES_DECODE_U16(buffer, decoded, supportedcodeclist->codecbitmap);
ielen=ielen -2;
#if defined (NAS_DEBUG) #if defined (NAS_DEBUG)
dump_supported_codec_list_xml(supportedcodeclist, iei); dump_supported_codec_list_xml(supportedcodeclist, iei);
#endif #endif
decoded = decoded + ielen;
return decoded; return decoded;
} }
int encode_supported_codec_list(SupportedCodecList *supportedcodeclist, uint8_t iei, uint8_t *buffer, uint32_t len) int encode_supported_codec_list(SupportedCodecList *supportedcodeclist, uint8_t iei, uint8_t *buffer, uint32_t len)
......
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