mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-04 22:25:58 +00:00
Fix check for 4K frame size in streaming.
This commit is contained in:
parent
4f8ea4c807
commit
d67dafaccb
@ -512,7 +512,7 @@ bool VideoTrackObject::tryReadFirstFrame(FFmpeg::Packet &&packet) {
|
||||
}
|
||||
|
||||
bool VideoTrackObject::processFirstFrame() {
|
||||
if (_stream.frame->width * _stream.frame->height >= kMaxFrameArea) {
|
||||
if (_stream.frame->width * _stream.frame->height > kMaxFrameArea) {
|
||||
return false;
|
||||
}
|
||||
auto frame = ConvertFrame(
|
||||
|
Loading…
Reference in New Issue
Block a user