From 5e68d9655c87dcdb08c8879e469e514ae49a2a7c Mon Sep 17 00:00:00 2001 From: Vanilagy <1696106+Vanilagy@users.noreply.github.com> Date: Thu, 2 Jul 2026 22:58:51 +0200 Subject: [PATCH] Make ProRes tracks return true for hasOnlyKeyPackets() --- src/input-track.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/input-track.ts b/src/input-track.ts index 49965bf..b488495 100644 --- a/src/input-track.ts +++ b/src/input-track.ts @@ -544,7 +544,8 @@ export class InputVideoTrack extends InputTrack { } async hasOnlyKeyPackets() { - return (await this._backing.getHasOnlyKeyPackets?.()) ?? false; + return (await this._backing.getHasOnlyKeyPackets?.()) + ?? (await this._backing.getCodec() === 'prores'); // Only ProRes is fully intra-frame } /** Returns the width in pixels of the track's coded samples, before any transformations or rotations. */