添加音频和视频缓冲区配置支持

This commit is contained in:
2025-03-19 21:37:03 +08:00
parent 60ae578648
commit 2c935b29be
5 changed files with 53 additions and 0 deletions

View File

@@ -83,3 +83,19 @@ int Config::LoggingLevel() {
return AV_LOG_INFO;
}
}
uint32_t Config::AudioBuffer() {
auto re = configs.find("audioBuffer");
if (re == configs.end()) {
return 0;
}
return std::stoul((*re).second);
}
uint32_t Config::VideoBuffer() {
auto re = configs.find("videoBuffer");
if (re == configs.end()) {
return 0;
}
return std::stoul((*re).second);
}