Skip to content

Commit 6d4ac59

Browse files
committed
style(engine): shorten the rate-cap comment
1 parent e5ba718 commit 6d4ac59

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

‎packages/engine/src/services/chunkEncoder.ts‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,12 +239,7 @@ function bitrateToBitsPerSecond(value: string): number {
239239
return Number(match[1]) * (unit === "m" ? 1_000_000 : unit === "k" ? 1_000 : 1);
240240
}
241241

242-
/**
243-
* `-maxrate` / `-bufsize` for the VBV cap, shared by every encoder entry point
244-
* so the two arg builders cannot disagree. The cap rides alongside CRF or a
245-
* target bitrate. `bufferSize` defaults to twice `maxBitrate`. Throws for codecs
246-
* with no cap here: a silently uncapped file would only surface at delivery.
247-
*/
242+
/** `-maxrate` / `-bufsize` for the VBV cap, written once for both arg builders. Buffer defaults to 2x. */
248243
export function appendRateCapArgs(
249244
args: string[],
250245
options: { codec?: string; maxBitrate?: string; bufferSize?: string },

0 commit comments

Comments
 (0)