commit | f4eadb67ba9130b583b8f2f192276b53fa3d50bc | [log] [tgz] |
---|---|---|
author | Wei Jia <wjia@google.com> | Mon Sep 15 17:34:19 2014 -0700 |
committer | Wei Jia <wjia@google.com> | Mon Sep 15 17:34:19 2014 -0700 |
tree | f77daca4d9256ba9e2868663b4a3e673682a1cde | |
parent | db8556baf10baefd286f7654c822fd0b648e71ef [diff] |
ASessionDescription: allow open-ended NTP range. Bug: 17435211 Change-Id: I450d512abdc4368f5180d9859f3b4e207e3b5591
diff --git a/media/libstagefright/rtsp/ASessionDescription.cpp b/media/libstagefright/rtsp/ASessionDescription.cpp index a9b3330..98498e9 100644 --- a/media/libstagefright/rtsp/ASessionDescription.cpp +++ b/media/libstagefright/rtsp/ASessionDescription.cpp
@@ -319,6 +319,11 @@ 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 }