aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTsuda Kageyu <tsuda.kageyu@gmail.com>2017-05-31 09:20:27 +0900
committerGitHub <noreply@github.com>2017-05-31 09:20:27 +0900
commit4801fbb927c15afab864f7b2f02ad2e07c332ecc (patch)
treef528b8b8915d488c260f454fef3062460f1e2cb1
parent22de22b70198b63ccbb1a9297acab102b7a0ffeb (diff)
parentff28cf276c6092b0ac57ece76309b42ddd1d39e9 (diff)
Merge pull request #818 from LindyBalboa/add_rate_atom_support
Add direct support for "rate" atom
-rw-r--r--taglib/mp4/mp4tag.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/taglib/mp4/mp4tag.cpp b/taglib/mp4/mp4tag.cpp
index a7a473a2..11d3cc51 100644
--- a/taglib/mp4/mp4tag.cpp
+++ b/taglib/mp4/mp4tag.cpp
@@ -74,7 +74,7 @@ MP4::Tag::Tag(TagLib::File *file, MP4::Atoms *atoms) :
atom->name == "hdvd" || atom->name == "shwm") {
parseBool(atom);
}
- else if(atom->name == "tmpo" || atom->name == "\251mvi" || atom->name == "\251mvc") {
+ else if(atom->name == "tmpo" || atom->name == "rate" || atom->name == "\251mvi" || atom->name == "\251mvc") {
parseInt(atom);
}
else if(atom->name == "tvsn" || atom->name == "tves" || atom->name == "cnID" ||
@@ -476,7 +476,7 @@ MP4::Tag::save()
name == "shwm") {
data.append(renderBool(name.data(String::Latin1), it->second));
}
- else if(name == "tmpo" || name == "\251mvi" || name == "\251mvc") {
+ else if(name == "tmpo" || name == "rate" || name == "\251mvi" || name == "\251mvc") {
data.append(renderInt(name.data(String::Latin1), it->second));
}
else if(name == "tvsn" || name == "tves" || name == "cnID" ||