Add a warning message if H264 profile-level-id parameter wasn't

posible to parse.

svn path=/trunk/; revision=33776
This commit is contained in:
Anders Broman 2010-08-11 21:39:22 +00:00
parent 7de3dc3167
commit ccf8787370
1 changed files with 5 additions and 3 deletions

View File

@ -1374,9 +1374,11 @@ decode_sdp_fmtp(proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint offset
tokenlen = end_offset - offset;
format_specific_parameter = tvb_get_ephemeral_string(tvb, offset, tokenlen);
data_tvb = ascii_bytes_to_tvb(tvb, pinfo, tokenlen, format_specific_parameter);
if (data_tvb) {
length = tvb_length(data_tvb);
}
if(!data_tvb){
item = proto_tree_add_text(tree, tvb, offset, tokenlen, "Could not convert '%s' to bytes",format_specific_parameter);
return;
}
length = tvb_length(data_tvb);
if (length == 3){
if(h264_handle && data_tvb){
dissect_h264_profile(data_tvb, pinfo, tree);