jv4-demuxer
Advanced tools
Comparing version 1.0.7 to 1.0.8
{ | ||
"name": "jv4-demuxer", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -65,13 +65,20 @@ import { BaseDemuxer, DemuxEvent, DemuxMode } from "./base"; | ||
this.audioDecoderConfig.sampleRate = samplingFrequencyIndexMap[((data[2] & 0x7) << 1) | (data[3] >> 7)]; | ||
} else { | ||
this.emit( | ||
DemuxEvent.AUDIO_ENCODER_CONFIG_CHANGED, | ||
this.audioDecoderConfig | ||
); | ||
} | ||
} | ||
if (this.audioDecoderConfig.codec == "aac" && data[1] == 0x00) { | ||
this.audioDecoderConfig.description = data.subarray(2); | ||
this.emit( | ||
DemuxEvent.AUDIO_ENCODER_CONFIG_CHANGED, | ||
this.audioDecoderConfig | ||
); | ||
if (this.mode == DemuxMode.PULL) | ||
return this.pull(); | ||
else return; | ||
if (this.audioDecoderConfig.codec == "aac") { | ||
if (data[1] == 0x00) { | ||
this.audioDecoderConfig.description = data.subarray(2); | ||
this.emit( | ||
DemuxEvent.AUDIO_ENCODER_CONFIG_CHANGED, | ||
this.audioDecoderConfig | ||
); | ||
if (this.mode == DemuxMode.PULL) | ||
return this.pull(); | ||
else return; | ||
} | ||
} | ||
@@ -78,0 +85,0 @@ return this.gotAudio?.({ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17004
481