]> granicus.if.org Git - taglib/commitdiff
Decode samplerate correctly.
authorAllan Sandfeld Jensen <kde@carewolf.com>
Sat, 2 Apr 2005 20:53:11 +0000 (20:53 +0000)
committerAllan Sandfeld Jensen <kde@carewolf.com>
Sat, 2 Apr 2005 20:53:11 +0000 (20:53 +0000)
BUG: 99829

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@402712 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

mpc/mpcproperties.cpp

index 029de5b7b2d4eeeae5edc2b07d77d41c9910ec77..2d3f863c5e11e0c3c72f8439299a8cc47fd7d7b9 100644 (file)
@@ -116,7 +116,7 @@ void MPC::Properties::read()
   if(d->version >= 7) {
     frames = d->data.mid(4, 4).toUInt(false);
 
-    std::bitset<32> flags = d->data.mid(8, 4).toUInt(true);
+    std::bitset<32> flags = d->data.mid(8, 4).toUInt(false);
     d->sampleRate = sftable[flags[17] * 2 + flags[16]];
     d->channels = 2;
   }