1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00

Fixing ffmpeg dimension reading issue #666

This commit is contained in:
Patrik J. Braun 2024-06-28 22:15:56 +02:00
parent 80787dfc0e
commit 39f1484be2

View File

@ -80,7 +80,7 @@ export class VideoRendererFactory {
let width = null; let width = null;
let height = null; let height = null;
for (const stream of data.streams) { for (const stream of data.streams) {
if (stream.width) { if (stream.width && stream.height && !isNaN(stream.width) && !isNaN(stream.height)) {
width = stream.width; width = stream.width;
height = stream.height; height = stream.height;
break; break;