Skip to content

Commit

Permalink
Fix for issue #454
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Inns committed Feb 7, 2020
1 parent 7a2b24e commit 9dada03
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/ld-discmap/discmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,8 @@ qint32 DiscMap::getSecondFieldNumber(qint32 frameNumber) const
bool DiscMap::saveTargetMetadata(QFileInfo outputFileInfo)
{
qint32 notifyInterval = m_numberOfFrames / 50;
if (notifyInterval < 1) notifyInterval = 1;

LdDecodeMetaData targetMetadata;
LdDecodeMetaData::VideoParameters sourceVideoParameters = ldDecodeMetaData->getVideoParameters();

Expand Down
2 changes: 2 additions & 0 deletions tools/ld-discmap/discmapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,8 @@ bool DiscMapper::saveDiscMap(DiscMap &discMap)

qInfo() << "Saving target video frames...";
qint32 notifyInterval = discMap.numberOfFrames() / 50;
if (notifyInterval < 1) notifyInterval = 1;

for (qint32 frameNumber = 0; frameNumber < discMap.numberOfFrames(); frameNumber++) {
bool writeFail = false;

Expand Down

0 comments on commit 9dada03

Please sign in to comment.