mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Fix check for 4K frame size in streaming.
This commit is contained in:
parent
4f8ea4c807
commit
d67dafaccb
1 changed files with 1 additions and 1 deletions
|
@ -512,7 +512,7 @@ bool VideoTrackObject::tryReadFirstFrame(FFmpeg::Packet &&packet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool VideoTrackObject::processFirstFrame() {
|
bool VideoTrackObject::processFirstFrame() {
|
||||||
if (_stream.frame->width * _stream.frame->height >= kMaxFrameArea) {
|
if (_stream.frame->width * _stream.frame->height > kMaxFrameArea) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
auto frame = ConvertFrame(
|
auto frame = ConvertFrame(
|
||||||
|
|
Loading…
Add table
Reference in a new issue