improving video encoding

This commit is contained in:
Mariotaku Lee 2017-01-24 21:40:59 +08:00
parent de0a5be100
commit 9bbcc355d4
No known key found for this signature in database
GPG Key ID: 15C10F89D7C33535
1 changed files with 3 additions and 2 deletions

View File

@ -885,8 +885,9 @@ class UpdateStatusTask(
retriever.releaseSafe()
}
if (videoLimit.checkGeometry(geometry.x, geometry.y) && videoLimit.checkFrameRate(framerate)
&& videoLimit.checkSize(size, chucked)) {
if (geometry.x > 0 && geometry.y > 0 && videoLimit.checkGeometry(geometry.x, geometry.y)
&& framerate > 0 && videoLimit.checkFrameRate(framerate)
&& size > 0 && videoLimit.checkSize(size, chucked)) {
// Size valid, upload directly
DebugLog.d(LOGTAG, "Upload video directly")
return null