diff --git a/media/webrtc/signaling/src/sdp/sipcc/sdp_attr.c b/media/webrtc/signaling/src/sdp/sipcc/sdp_attr.c index 7301d929817c..49b87727110e 100644 --- a/media/webrtc/signaling/src/sdp/sipcc/sdp_attr.c +++ b/media/webrtc/signaling/src/sdp/sipcc/sdp_attr.c @@ -581,9 +581,9 @@ sdp_result_e sdp_get_fmtp_tok_val(sdp_t *sdp_p, if (errno || (*tok == strtoul_end) - || (illegal_value != -1UL && value == illegal_value) - || (min_limit != -1UL && value < min_limit) - || (max_limit != -1UL && value > max_limit)) { + || (illegal_value != ULONG_MAX && value == illegal_value) + || (min_limit != ULONG_MAX && value < min_limit) + || (max_limit != ULONG_MAX && value > max_limit)) { sdp_attr_fmtp_invalid_value(sdp_p, fmtp_name, *tok); return SDP_INVALID_PARAMETER; } @@ -592,7 +592,6 @@ sdp_result_e sdp_get_fmtp_tok_val(sdp_t *sdp_p, return SDP_SUCCESS; } - sdp_result_e sdp_parse_attr_fmtp (sdp_t *sdp_p, sdp_attr_t *attr_p, const char *ptr) {