Skip to content

Commit

Permalink
Borewit/music-metadata-browser#28 Add explicit 0 offset to prevent er…
Browse files Browse the repository at this point in the history
…ror using feross/buffer v4
  • Loading branch information
Borewit committed Aug 9, 2019
1 parent 53a6e60 commit 32a6aca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/id3v2/ID3v24TagMapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ export class ID3v24TagMapper extends CommonTagMapper {
case 'AverageLevel':
case 'PeakValue':
tag.id += ':' + tag.value.owner_identifier;
tag.value = tag.value.data.length === 4 ? tag.value.data.readUInt32LE() : null;
tag.value = tag.value.data.length === 4 ? tag.value.data.readUInt32LE(0) : null;
// ToDo: flag warning if: tag.value === null
break;
default:
Expand Down

0 comments on commit 32a6aca

Please sign in to comment.