From 380fccb8ca1559cca1f0d65d05ba287b5a3e70ee Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 6 Jul 2024 03:01:39 +0200 Subject: Set global quality for h264 and hevc again --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index a6ba8a9..20871c0 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -422,7 +422,7 @@ static AVCodecContext *create_video_codec_context(AVPixelFormat pix_fmt, // 8 bit / 10 bit = 80%, and increase it even more const float quality_multiply = hdr ? (8.0f/10.0f * 0.7f) : 1.0f; - if(codec_context->codec_id == AV_CODEC_ID_AV1) { + if(codec_context->codec_id == AV_CODEC_ID_AV1 || codec_context->codec_id == AV_CODEC_ID_H264 || codec_context->codec_id == AV_CODEC_ID_HEVC) { switch(video_quality) { case VideoQuality::MEDIUM: codec_context->global_quality = 180 * quality_multiply; -- cgit v1.2.3