Skip to content

Commit

Permalink
feat: Add AC-3 detection in TS (shaka-project#4931)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jan 25, 2023
1 parent 68968c1 commit 48c30bc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/util/ts_parser.js
Expand Up @@ -266,6 +266,13 @@ shaka.util.TsParser = class {
result.videoCodec = 'hvc';
}
break;
// AC-3
case 0x81:
if (result.audio == -1) {
result.audio = pid;
result.audioCodec = 'ac3';
}
break;
default:
// shaka.log.warning('Unknown stream type:', data[offset]);
break;
Expand Down

0 comments on commit 48c30bc

Please sign in to comment.