Skip to content

fix: add missing VisualSampleEntry's box types #472

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/boxes/sampleentries/base.ts
Original file line number Diff line number Diff line change
@@ -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');
Expand Down Expand Up @@ -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<av1CBox>;
avcC?: avcCBox;
avcCs?: Array<avcCBox>;
hvcC?: hvcCBox;
hvcCs?: Array<hvcCBox>;
vpcC?: vpcCBox;
vpcCs?: Array<vpcCBox>;
vvcC?: vvcCBox;
vvcCs?: Array<vvcCBox>;

width: number;
height: number;
Expand Down