Don't set AR if video dimensions are undefined.
This commit is contained in:
parent
485a5c13f0
commit
f554030f3c
@ -145,6 +145,10 @@ class Resizer {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.video.videoWidth || !this.video.videoHeight) {
|
||||
this.logger.log('warning', 'debug', '[Resizer::setAr] <rid:'+this.resizerId+'> Video has no width or no height. This is not allowed. Aspect ratio will not be set.');
|
||||
}
|
||||
|
||||
this.logger.log('info', 'debug', '[Resizer::setAr] <rid:'+this.resizerId+'> trying to set ar. New ar:', ar)
|
||||
|
||||
if (ar == null) {
|
||||
|
Loading…
Reference in New Issue
Block a user