]> granicus.if.org Git - taglib/commitdiff
Revert useless changes accidentally committed.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 21 Jan 2017 02:13:49 +0000 (11:13 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Sat, 21 Jan 2017 02:13:49 +0000 (11:13 +0900)
taglib/mpeg/mpegutils.h

index 8b8cfd69490bf16fe76436c14ddcfee1e28d0078..1cee918a6cddc78f3d3832adc2770c0a4484b031 100644 (file)
@@ -45,12 +45,12 @@ namespace TagLib
        * \note This does not check the length of the vector, since this is an
        * internal utility function.
        */
-      inline bool isFrameSync(const ByteVector &bytes, long offset = 0)
+      inline bool isFrameSync(const ByteVector &bytes)
       {
         // 0xFF in the second byte is possible in theory, but it's very unlikely.
 
-        const unsigned char b1 = bytes[offset + 0];
-        const unsigned char b2 = bytes[offset + 1];
+        const unsigned char b1 = bytes[0];
+        const unsigned char b2 = bytes[1];
         return (b1 == 0xFF && b2 != 0xFF && (b2 & 0xE0) == 0xE0);
       }