From 6eab8b87181b0141a636a76051aef0caa2256217 Mon Sep 17 00:00:00 2001 From: Martchus Date: Thu, 18 May 2023 00:37:59 +0200 Subject: [PATCH] Log the mismatching sizes when XING header mismatches real size --- mpegaudio/mpegaudioframestream.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mpegaudio/mpegaudioframestream.cpp b/mpegaudio/mpegaudioframestream.cpp index 4ae5e4e..9568598 100644 --- a/mpegaudio/mpegaudioframestream.cpp +++ b/mpegaudio/mpegaudioframestream.cpp @@ -3,6 +3,8 @@ #include "../exceptions.h" #include "../mediaformat.h" +#include + #include using namespace std; @@ -69,7 +71,8 @@ void MpegAudioFrameStream::internalParseHeader(Diagnostics &diag, AbortableProgr std::uint32_t xingSize = frame.xingBytesfield(); if (m_size && xingSize != m_size) { diag.emplace_back(DiagLevel::Warning, - "Real length of MPEG audio frames is not in accordance with value provided by Xing header. The Xing header value will be used.", + argsToString("Real length of MPEG audio frames (", m_size, " byte) is not in accordance with value provided by Xing header (", + xingSize, " byte). The Xing header value will be used."), context); m_size = xingSize; }