From 39f1484be2439149d44db327f37921f65e3defdd Mon Sep 17 00:00:00 2001 From: "Patrik J. Braun" Date: Fri, 28 Jun 2024 22:15:56 +0200 Subject: [PATCH] Fixing ffmpeg dimension reading issue #666 --- src/backend/model/fileaccess/PhotoWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;