You've already forked pigallery2
mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-07-13 01:20:23 +02:00
Fixing ffmpeg dimension reading issue #666
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user