proto_tree_add_item(aptx_tree, hf_aptx_data, tvb, 0, -1, ENC_NA);
- while (info && info->configuration && info->configuration_length >= 9) {
+ if (info && info->configuration && info->configuration_length >= 9) {
gboolean fail = FALSE;
gdouble expected_speed_data;
gdouble frame_duration;
}
if (fail)
- break;
+ return tvb_reported_length(tvb);
switch (info->configuration[8] & 0x0F) {
case 0x01:
}
if (fail)
- break;
+ return tvb_reported_length(tvb);
sample_bits = 16;
proto_item_append_text(pitem, " ms");
PROTO_ITEM_SET_GENERATED(pitem);
}
-
- break;
}
return tvb_reported_length(tvb);