Correctly identify padded MP3 frames (#1375)

This commit is contained in:
Doug Hoffman
2022-12-23 06:12:44 -05:00
committed by GitHub
parent 08499ac73f
commit 8707eb2c88

View File

@@ -100,7 +100,7 @@ public class MP3Header
*/
public static boolean isPadded(byte[] frame, int offset)
{
return (frame[offset + 2] & 0x01) == 1;
return (frame[offset + 2] & 0x02) == 0x02;
}
/**