Make ProRes tracks return true for hasOnlyKeyPackets()

This commit is contained in:
Vanilagy
2026-07-02 22:58:51 +02:00
parent 7171cf4338
commit 5e68d9655c
+2 -1
View File
@@ -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. */