From bc0e749aa7e7154fe6b8b010ede19682381abc2e Mon Sep 17 00:00:00 2001 From: Erwan Vivien Date: Thu, 19 Jun 2025 14:25:33 +0200 Subject: [PATCH] fix: add missing VisualSampleEntry's box types --- src/boxes/sampleentries/base.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/boxes/sampleentries/base.ts b/src/boxes/sampleentries/base.ts index c77216ff..fc634731 100644 --- a/src/boxes/sampleentries/base.ts +++ b/src/boxes/sampleentries/base.ts @@ -1,8 +1,11 @@ import { ContainerBox } from '#/containerBox'; import type { MultiBufferStream } from '#/buffer'; import { Log } from '#/log'; +import type { av1CBox } from '../av1C'; import type { avcCBox } from '../avcC'; import type { hvcCBox } from '../hvcC'; +import type { vpcCBox } from '../vpcC'; +import type { vvcCBox } from '../vvcC'; export class SampleEntry extends ContainerBox { static override readonly registryId = Symbol.for('SampleEntryIdentifier'); @@ -158,10 +161,16 @@ export class TextSampleEntry extends SampleEntry {} //Base SampleEntry types for Audio and Video with specific parsing export class VisualSampleEntry extends SampleEntry { + av1C?: av1CBox; + av1Cs?: Array; avcC?: avcCBox; avcCs?: Array; hvcC?: hvcCBox; hvcCs?: Array; + vpcC?: vpcCBox; + vpcCs?: Array; + vvcC?: vvcCBox; + vvcCs?: Array; width: number; height: number;