Don't set AR if video dimensions are undefined.

This commit is contained in:
Tamius Han 2020-12-29 20:20:00 +01:00
parent 485a5c13f0
commit f554030f3c

View File

@ -144,6 +144,10 @@ class Resizer {
if (this.destroyed) {
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)