Skip to content

Commit

Permalink
fix(aac): 去掉没必要的默认值
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaohappy committed Jan 23, 2025
1 parent 0f0cb84 commit 4d24f5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/avutil/codecs/aac.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ export function getAVCodecParameters(extradata: Uint8ArrayInterface) {
if (extradata.length >= 2) {
profile = (extradata[0] >> 3) & 0x1f
sampleRate = MPEG4SamplingFrequencies[((extradata[0] & 0x07) << 1)
| (extradata[1] >> 7)] ?? 48000
| (extradata[1] >> 7)]

channels = MPEG4Channels[(extradata[1] >> 3) & 0x0f] ?? 2
channels = MPEG4Channels[(extradata[1] >> 3) & 0x0f]
}

return {
Expand Down

0 comments on commit 4d24f5a

Please sign in to comment.