Commit 137dc6a7 authored by Clement Guedez's avatar Clement Guedez

Allow to use rtmp stream in standard AV

Allow to use rtmp stream in standard AV IO module.
parent 71514b36
......@@ -131,12 +131,12 @@ const std::string errorString(const int errorCode) {
#ifndef __clang_analyzer__
bool isStream(const std::string& filename) {
std::regex rtsp("RTSP://", std::regex_constants::ECMAScript | std::regex_constants::icase);
// std::regex rtmp("RTMP://", std::regex_constants::ECMAScript | std::regex_constants::icase);
std::regex rtmp("RTMP://", std::regex_constants::ECMAScript | std::regex_constants::icase);
if (std::regex_search(filename, rtsp)) {
return true;
} /*else if (std::regex_search(filename, rtmp)) {
} else if (std::regex_search(filename, rtmp)) {
return true;
}*/
}
return false;
}
#endif // __clang_analyzer__
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment