mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-20 14:56:19 -04: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…
Add table
Add a link
Reference in a new issue