mirror of
https://github.com/bpatrik/pigallery2.git
synced 2025-01-02 03:37:54 +02:00
Fixing ffmpeg dimension reading issue #666
This commit is contained in:
parent
80787dfc0e
commit
39f1484be2
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user