Skip to content

Commit 7b268a9

Browse files
committed
fix(engine): use undefined (not boolean false) when stripping HDR for libx264
The hdr field is { transfer: HdrTransfer } | undefined — not boolean. Setting it to false produced a TS2322 type error. undefined is the correct sentinel and matches how callers represent SDR throughout the codebase.
1 parent 0c87c4b commit 7b268a9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/engine/src/services/chunkEncoder.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function buildEncoderArgs(
9797
"[chunkEncoder] HDR is not supported with codec=h264 (libx264 has no HDR support). " +
9898
"Stripping HDR metadata and tagging output as SDR/BT.709. Use codec=h265 for HDR output.",
9999
);
100-
options = { ...options, hdr: false };
100+
options = { ...options, hdr: undefined };
101101
}
102102

103103
const args: string[] = [...inputArgs, "-r", String(fps)];

0 commit comments

Comments
 (0)