ffmpeg命令支持相对路径

This commit is contained in:
ziyue
2022-02-24 11:42:43 +08:00
parent bcb2810c62
commit 26d0589bf5
2 changed files with 2 additions and 2 deletions

View File

@@ -90,7 +90,7 @@ void FFmpegSource::play(const string &ffmpeg_cmd_key, const string &src_url,cons
}
}
char cmd[1024] = {0};
char cmd[2048] = {0};
snprintf(cmd, sizeof(cmd), ffmpeg_cmd.data(), File::absolutePath("", ffmpeg_bin).data(), src_url.data(), dst_url.data());
auto log_file = ffmpeg_log.empty() ? "" : File::absolutePath("", ffmpeg_log);
_process.run(cmd, log_file);