Skip to content

Commit

Permalink
Fixing ffmpeg dimension reading issue bpatrik#666
Browse files Browse the repository at this point in the history
  • Loading branch information
bpatrik committed Jun 28, 2024
1 parent 80787df commit 39f1484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/model/fileaccess/PhotoWorker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 39f1484

Please sign in to comment.