Skip to content

Commit

Permalink
adts: correctly fill audioConfig for Opera/Vivaldi
Browse files Browse the repository at this point in the history
  • Loading branch information
mangui committed Oct 5, 2016
1 parent 781c0f0 commit 7f3bb56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/demux/adts.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ import {ErrorTypes, ErrorDetails} from '../errors';
// byte 3
adtsChanelConfig |= ((data[offset + 3] & 0xC0) >>> 6);
logger.log(`manifest codec:${audioCodec},ADTS data:type:${adtsObjectType},sampleingIndex:${adtsSampleingIndex}[${adtsSampleingRates[adtsSampleingIndex]}Hz],channelConfig:${adtsChanelConfig}`);
// firefox: freq less than 24kHz = AAC SBR (HE-AAC)
if (userAgent.indexOf('firefox') !== -1) {
// firefox/Opera/Vivaldi: freq less than 24kHz = AAC SBR (HE-AAC)
if (/firefox|OPR|vivaldi/i.test(userAgent)) {
if (adtsSampleingIndex >= 6) {
adtsObjectType = 5;
config = new Array(4);
Expand Down

0 comments on commit 7f3bb56

Please sign in to comment.