mirror of https://github.com/procxx/kepka.git
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() {
|
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…
Reference in New Issue