diff --git a/src/ext/lib/video-transform/Resizer.js b/src/ext/lib/video-transform/Resizer.js index 3e0bc2c..7a5ec8f 100644 --- a/src/ext/lib/video-transform/Resizer.js +++ b/src/ext/lib/video-transform/Resizer.js @@ -144,6 +144,10 @@ class Resizer { if (this.destroyed) { return; } + + if (!this.video.videoWidth || !this.video.videoHeight) { + this.logger.log('warning', 'debug', '[Resizer::setAr] Video has no width or no height. This is not allowed. Aspect ratio will not be set.'); + } this.logger.log('info', 'debug', '[Resizer::setAr] trying to set ar. New ar:', ar)