🎥 Make videos programmatically with React
throw an error if the stored crf is not valid for the given codec
Calvin Falterd6ed31741483
diff --git a/packages/core/src/config/crf.ts b/packages/core/src/config/crf.tsindex 34402009db..da4c2baaaf 100644--- a/packages/core/src/config/crf.ts+++ b/packages/core/src/config/crf.ts@@ -60,11 +60,7 @@ export const validateSelectedCrfAndCodecCombination = (};export const getActualCrf = (codec: Codec) => {- try {- const crf = getCrfOrUndefined() ?? getDefaultCrfForCodec(codec);- validateSelectedCrfAndCodecCombination(crf, codec);- return crf;- } catch (e) {- return getDefaultCrfForCodec(codec);- }+ const crf = getCrfOrUndefined() ?? getDefaultCrfForCodec(codec);+ validateSelectedCrfAndCodecCombination(crf, codec);+ return crf;};