Fix reading table of contents frames with a lot of children.

This commit is contained in:
Tsuda Kageyu
2016-05-14 09:58:19 +09:00
parent d8e5077961
commit 9b995544e4
3 changed files with 10 additions and 3 deletions

Binary file not shown.

View File

@ -118,6 +118,7 @@ class TestID3v2 : public CppUnit::TestFixture
CPPUNIT_TEST(testShrinkPadding);
CPPUNIT_TEST(testEmptyFrame);
CPPUNIT_TEST(testDuplicateTags);
CPPUNIT_TEST(testParseTOCFrameWithManyChildren);
CPPUNIT_TEST_SUITE_END();
public:
@ -1217,6 +1218,12 @@ public:
}
}
void testParseTOCFrameWithManyChildren()
{
MPEG::File f(TEST_FILE_PATH_C("toc_many_children.mp3"));
CPPUNIT_ASSERT(f.isValid());
}
};
CPPUNIT_TEST_SUITE_REGISTRATION(TestID3v2);