mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-10-09 08:43:49 +02:00
Support AVC in Annex B format, add AVCDecoderConfigurationRecord extraction logic, add Annex B to AVCC converter, add support for Matroska Clusters with undefined size, & a couple other improvements
This commit is contained in:
@@ -931,8 +931,7 @@ export const stsc = (trackData: IsobmffTrackData) => {
|
||||
|
||||
/** Sample Size Box: Specifies the byte size of each sample in the media. */
|
||||
export const stsz = (trackData: IsobmffTrackData) => {
|
||||
if (trackData.requiresPcmTransformation) {
|
||||
assert(trackData.type === 'audio');
|
||||
if (trackData.type === 'audio' && trackData.info.requiresPcmTransformation) {
|
||||
const { sampleSize } = parsePcmCodec(trackData.track.source._codec as PcmAudioCodec);
|
||||
|
||||
// With PCM, every sample has the same size
|
||||
|
||||
Reference in New Issue
Block a user