From d67dafaccb61071bbaab49ea947004e14739f641 Mon Sep 17 00:00:00 2001 From: John Preston Date: Mon, 13 Apr 2020 15:13:27 +0400 Subject: [PATCH] Fix check for 4K frame size in streaming. --- .../SourceFiles/media/streaming/media_streaming_video_track.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/media/streaming/media_streaming_video_track.cpp b/Telegram/SourceFiles/media/streaming/media_streaming_video_track.cpp index 28d066e1ea..61e66870d4 100644 --- a/Telegram/SourceFiles/media/streaming/media_streaming_video_track.cpp +++ b/Telegram/SourceFiles/media/streaming/media_streaming_video_track.cpp @@ -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(