Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 086c1e3f authored by Wei Jia's avatar Wei Jia Committed by Android (Google) Code Review
Browse files

Merge "ASessionDescription: allow open-ended NTP range." into lmp-dev

parents 9299a687 f4eadb67
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -319,6 +319,11 @@ bool ASessionDescription::parseNTPRange(

    s = end + 1;  // skip the dash.

    if (*s == '\0') {
        *npt2 = FLT_MAX;  // open ended.
        return true;
    }

    if (!strncmp("now", s, 3)) {
        return false;  // no absolute end time available
    }