From 382c09007dd318442be69d7a20f2a0e68a834fe2 Mon Sep 17 00:00:00 2001 From: simoninns Date: Sat, 19 Mar 2022 09:36:14 +0100 Subject: [PATCH] Fixed field length bug that caused issue #701 --- tools/ld-discmap/discmap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ld-discmap/discmap.cpp b/tools/ld-discmap/discmap.cpp index 4ff0d8ad1..7a3159d8e 100644 --- a/tools/ld-discmap/discmap.cpp +++ b/tools/ld-discmap/discmap.cpp @@ -735,7 +735,7 @@ qint32 DiscMap::getSecondFieldAudioDataLength(qint32 frameNumber) const qDebug() << "getSecondFieldAudioDataLength out of frameNumber range"; return false; } - return ldDecodeMetaData->getFieldPcmAudioLength(m_frames[frameNumber].firstField()); + return ldDecodeMetaData->getFieldPcmAudioLength(m_frames[frameNumber].secondField()); } // Save the target metadata from the disc map