diff options
author | dec05eba <dec05eba@protonmail.com> | 2024-07-06 03:01:39 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2024-07-06 03:01:39 +0200 |
commit | 380fccb8ca1559cca1f0d65d05ba287b5a3e70ee (patch) | |
tree | 88e1a9fab9d85cf7bbc5b771905a5c03a016d4ed /src | |
parent | f2589042ea6cf094389ea57bcb0b575acaead4dd (diff) |
Set global quality for h264 and hevc again
Diffstat (limited to 'src')
-rw-r--r-- | src/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; |