Remove null byte removal for table of contents frame

This commit is contained in:
Urs Fleisch
2023-11-24 07:35:41 +01:00
parent 8b564baf01
commit 8bb8fc5fe6
3 changed files with 6 additions and 35 deletions

View File

@ -1533,11 +1533,11 @@ public:
{
ID3v2::Header header;
ID3v2::TableOfContentsFrame f(&header, "CTOC");
f.setElementID(ByteVector("\x54\x00", 2));
f.setElementID("T");
f.setIsTopLevel(false);
f.setIsOrdered(true);
f.addChildElement(ByteVector("\x43\x00", 2));
f.addChildElement(ByteVector("\x44\x00", 2));
f.addChildElement("C");
f.addChildElement("D");
auto eF = new ID3v2::TextIdentificationFrame("TIT2");
eF->setText("TC1");
f.addEmbeddedFrame(eF);