MP4: Use integer instead of boolean for hdvd atom (#1169) (#1170)

This commit is contained in:
Urs Fleisch 2023-11-05 14:40:49 +01:00 committed by GitHub
parent 2f4c76b52a
commit 52b245f015
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,10 +70,11 @@ MP4::Tag::Tag(TagLib::File *file, MP4::Atoms *atoms) :
parseIntPair(atom);
}
else if(atom->name == "cpil" || atom->name == "pgap" || atom->name == "pcst" ||
atom->name == "hdvd" || atom->name == "shwm") {
atom->name == "shwm") {
parseBool(atom);
}
else if(atom->name == "tmpo" || atom->name == "\251mvi" || atom->name == "\251mvc") {
else if(atom->name == "tmpo" || atom->name == "\251mvi" || atom->name == "\251mvc" ||
atom->name == "hdvd") {
parseInt(atom);
}
else if(atom->name == "rate") {
@ -484,11 +485,12 @@ MP4::Tag::save()
else if(name == "disk") {
data.append(renderIntPairNoTrailing(name.data(String::Latin1), item));
}
else if(name == "cpil" || name == "pgap" || name == "pcst" || name == "hdvd" ||
else if(name == "cpil" || name == "pgap" || name == "pcst" ||
name == "shwm") {
data.append(renderBool(name.data(String::Latin1), item));
}
else if(name == "tmpo" || name == "\251mvi" || name == "\251mvc") {
else if(name == "tmpo" || name == "\251mvi" || name == "\251mvc" ||
name == "hdvd") {
data.append(renderInt(name.data(String::Latin1), item));
}
else if(name == "rate") {