diff --git a/lib/nas/common/types.c b/lib/nas/common/types.c index 80cf63f81..a11ab22e1 100644 --- a/lib/nas/common/types.c +++ b/lib/nas/common/types.c @@ -436,7 +436,7 @@ void ogs_nas_bitrate_from_uint64(ogs_nas_bitrate_t *nas, uint64_t bitrate) for (nas->unit = OGS_NAS_BR_UNIT_1K; nas->unit < OGS_NAS_BR_UNIT_256P; nas->unit++) { - if ((bitrate >> 2) == 0) { + if (bitrate <= 0xFFFFUL) { break; } bitrate >>= 2;