mirror of
https://github.com/gchq/CyberChef
synced 2024-11-15 00:57:08 +00:00
MP3 Extractor added
This commit is contained in:
parent
090bf3f8ec
commit
7c672c5ee9
1 changed files with 2 additions and 2 deletions
|
@ -3109,10 +3109,10 @@ export function extractMP3(bytes, offset) {
|
|||
// Read flag byte.
|
||||
const flags = stream.readInt(1);
|
||||
|
||||
// Extract frame bitrate from flag byte.
|
||||
// Extract frame bit rate from flag byte.
|
||||
const bitRate = bitRateIndexes[flags >> 4];
|
||||
|
||||
// Extract frame samplerate from flag byte.
|
||||
// Extract frame sample rate from flag byte.
|
||||
const sampleRate = samplingRateFrequencyIndex[(flags & 0x0f) >> 2];
|
||||
|
||||
// Padding if the frame size is not a multiple of the bitrate.
|
||||
|
|
Loading…
Reference in a new issue