diff --git a/src/backend/model/fileaccess/PhotoWorker.ts b/src/backend/model/fileaccess/PhotoWorker.ts index fd8b6f59..af136713 100644 --- a/src/backend/model/fileaccess/PhotoWorker.ts +++ b/src/backend/model/fileaccess/PhotoWorker.ts @@ -80,7 +80,7 @@ export class VideoRendererFactory { let width = null; let height = null; for (const stream of data.streams) { - if (stream.width) { + if (stream.width && stream.height && !isNaN(stream.width) && !isNaN(stream.height)) { width = stream.width; height = stream.height; break;