Skip to content

🎥 Make videos programmatically with React

fix

Jonny Burger3a21ff8f9739
diff --git a/packages/cli/src/get-final-output-codec.ts b/packages/cli/src/get-final-output-codec.ts
index bd882ae8c6..411021259d 100644
--- a/packages/cli/src/get-final-output-codec.ts
+++ b/packages/cli/src/get-final-output-codec.ts
@@ -78,14 +78,14 @@ export const getFinalOutputCodec = ({
return {codec: cliFlag, reason: 'from --codec flag'};
}
- if (derivedDownloadCodecs) {
+ if (derivedDownloadCodecs.length > 0) {
return {
codec: derivedDownloadCodecs[0],
reason: 'derived from download name',
};
}
- if (derivedOutNameCodecs) {
+ if (derivedOutNameCodecs.length > 0) {
return {
codec: derivedOutNameCodecs[0],
reason: 'derived from out name',