Fix check for 4K frame size in streaming.

This commit is contained in:
John Preston 2020-04-13 15:13:27 +04:00
parent 4f8ea4c807
commit d67dafaccb
1 changed files with 1 additions and 1 deletions

View File

@ -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(