Keep codec mode probes consistent with live encoding
This commit is contained in:
1 parent
7be4b8884c
commit
c0d5db318f
3 files changed
+36
-17
No files matched your search
@@ -6,7 +6,8 @@
|
||||
|
||||
// Профиль и envelope задаются явно: автоматический выбор level при смене bitrate запрещён.
|
||||
bool CallVideoEncoder::open(const call_video_format& format, uint32_t bitrate, const QString& backend) {
|
||||
if (!call_video_format_valid(&format) || bitrate < CALL_VIDEO_RATE_MIN_BPS || bitrate > format.maximum_bps) {
|
||||
if (!call_video_format_valid(&format) || bitrate < CALL_VIDEO_RATE_MIN_BPS || bitrate > format.maximum_bps
|
||||
|| (format.codec == CALL_VIDEO_H265 && format.profile != CALL_VIDEO_MAIN)) {
|
||||
m_error = "Invalid call video encoder configuration";
|
||||
DEBUG_ERROR(DEBUG_CATEGORY_CALL, "call video open invalid generation=%llu codec=%u level=%u bitrate=%u cap=%u profile=%u",
|
||||
(unsigned long long)format.generation, format.codec, format.level, bitrate, format.maximum_bps, format.profile); return false;
|
||||
|
||||
Reference in new issue
Block a user