1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

use system utilities

This commit is contained in:
winlin 2015-10-13 16:54:51 +08:00
parent 908365a61a
commit 69cc01b696
2 changed files with 2 additions and 2 deletions

View file

@ -410,7 +410,7 @@ string SrsFlvSegment::generate_path()
std::string path_config = _srs_config->get_dvr_path(req->vhost); std::string path_config = _srs_config->get_dvr_path(req->vhost);
// add [stream].[timestamp].flv as filename for dir // add [stream].[timestamp].flv as filename for dir
if (path_config.find(".flv") != path_config.length() - 4) { if (!srs_string_ends_with(path_config, ".flv")) {
path_config += "/[stream].[timestamp].flv"; path_config += "/[stream].[timestamp].flv";
} }

View file

@ -219,7 +219,7 @@ int SrsFFMPEG::initialize_transcode(SrsConfDirective* engine)
// for not rtmp input, donot append the iformat, // for not rtmp input, donot append the iformat,
// for example, "-f flv" before "-i udp://192.168.1.252:2222" // for example, "-f flv" before "-i udp://192.168.1.252:2222"
// @see https://github.com/simple-rtmp-server/srs/issues/290 // @see https://github.com/simple-rtmp-server/srs/issues/290
if (input.find("rtmp://") != 0) { if (!srs_string_starts_with(input, "rtmp://")) {
iformat = ""; iformat = "";
} }