mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Add support to identify (E)AC3 streams via TS descriptor tag
This commit is contained in:
parent
f4c10dc560
commit
e33345e5b8
1 changed files with 7 additions and 0 deletions
|
|
@ -392,7 +392,14 @@ public final class TsExtractor implements Extractor {
|
||||||
streamType = TS_STREAM_TYPE_H265;
|
streamType = TS_STREAM_TYPE_H265;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
} else if (descriptorTag == 0x6a) {
|
||||||
|
streamType = TS_STREAM_TYPE_AC3;
|
||||||
|
} else if (descriptorTag == 0x7a) {
|
||||||
|
streamType = TS_STREAM_TYPE_E_AC3;
|
||||||
|
} else if (descriptorTag == 0x7b) {
|
||||||
|
// TODO: TS_STREAM_TYPE_DTS;
|
||||||
}
|
}
|
||||||
|
|
||||||
data.skipBytes(descriptorLength);
|
data.skipBytes(descriptorLength);
|
||||||
}
|
}
|
||||||
data.setPosition(descriptorsEndPosition);
|
data.setPosition(descriptorsEndPosition);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue