Skip to content

Commit

Permalink
Fixing duration extraction from .mkv files!
Browse files Browse the repository at this point in the history
  • Loading branch information
cal2195 committed Dec 15, 2018
1 parent bda61e5 commit eb8ce80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main-support.ts
Expand Up @@ -458,7 +458,7 @@ function extractMetadataForThisONEFile(
if (err) {
extractMetaCallback(imageElement);
} else {
const duration = Math.round(metadata.streams[0].duration) || 0;
const duration = Math.round(metadata.format.duration) || 0;
const origWidth = metadata.streams[0].width;
const origHeight = metadata.streams[0].height;
const sizeLabel = labelVideo(origWidth, origHeight);
Expand Down

0 comments on commit eb8ce80

Please sign in to comment.