1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 00:03:03 +04:00

videoio(MSMF): fix audio sample-rate validation and dropped last frame (#27438)

This commit is contained in:
Varun Jaiswal
2026-07-10 12:42:12 +05:30
parent 4ce2389a62
commit 97c2c31d9a
2 changed files with 5 additions and 4 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ protected:
for (unsigned int nCh = 0; nCh < audioData.size(); nCh++)
{
#ifdef _WIN32
if (audioData[nCh].size() == 132924 && numberOfSamples == 131819 && fileName == "test_audio.mp4")
if ((audioData[nCh].size() == 132924 || audioData[nCh].size() == 133104) && numberOfSamples == 131819 && fileName == "test_audio.mp4")
throw SkipTestException("Detected failure observed on legacy Windows versions. SKIP");
#endif
ASSERT_EQ(numberOfSamples, audioData[nCh].size()) << "nCh=" << nCh;