Compatible with npt syntax in SDP some servers send
Some servers provide npt syntax in SDP as "a=range:npt:0-11" but
AOSP only supports npt syntax "a=range:npt=0-11". If AOSP doesn't
support syntax ':', it will result in problem for some live streaming.
Bug: 123256414
Test: Play special file and check if duration is normal.
Change-Id: Ie1120adf13c0e92b2e954bb4cb8cc46866d90e4b
diff --git a/media/libstagefright/rtsp/ASessionDescription.cpp b/media/libstagefright/rtsp/ASessionDescription.cpp
index 325084c..c581e9d 100644
--- a/media/libstagefright/rtsp/ASessionDescription.cpp
+++ b/media/libstagefright/rtsp/ASessionDescription.cpp
@@ -261,7 +261,7 @@
return false;
}
- if (strncmp(value.c_str(), "npt=", 4)) {
+ if (strncmp(value.c_str(), "npt=", 4) && strncmp(value.c_str(), "npt:", 4)) {
return false;
}