添加音频和视频缓冲区配置支持
This commit is contained in:
16
config.cpp
16
config.cpp
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user