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:
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