modify decode error about supportedCodecList in NAS message
This commit is contained in:
committed by
masayuki.harada
parent
e37c844b17
commit
63a5c693b4
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user