fix(h264_nvenc): fixing crf handling for h264_nvenc

This commit is contained in:
CarolinePascal
2026-05-13 18:09:48 +02:00
parent 246d7e1dea
commit 60b05efb4f
3 changed files with 11 additions and 11 deletions
+2 -2
View File
@@ -90,10 +90,10 @@ class TestCodecOptions:
def test_nvenc_options(self):
cfg = VideoEncoderConfig(vcodec="h264_nvenc", g=2, crf=25, preset=None)
opts = cfg.get_codec_options()
assert opts["rc"] == "constqp"
assert opts["rc"] == 0
assert opts["qp"] == 25
assert "crf" not in opts
assert "g" not in opts
assert opts["g"] == 2
@_require_encoder("h264_vaapi")
def test_vaapi_options(self):