diff options
author | dec05eba <dec05eba@protonmail.com> | 2023-04-10 02:38:47 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2023-04-10 02:38:47 +0200 |
commit | ce5e0169c40cbb5b4ea93efec64fb72408605195 (patch) | |
tree | f470f258f56778309c2de2d405d20c71e13cb2ef /src/main.cpp | |
parent | dddd42690418b1b9aee795cd3fa0deb3eb45c83e (diff) |
kms: fix crash on intel when using hevc, remove debug print, remove jpeg color range (incorrect colors on intel h264)
Diffstat (limited to 'src/main.cpp')
-rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 489f800..fd8a279 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -306,7 +306,7 @@ static AVCodecContext *create_video_codec_context(AVPixelFormat pix_fmt, } codec_context->max_b_frames = 0; codec_context->pix_fmt = pix_fmt; - codec_context->color_range = AVCOL_RANGE_JPEG; // TODO: Amd/nvidia? + //codec_context->color_range = AVCOL_RANGE_JPEG; // TODO: Amd/nvidia? //codec_context->color_primaries = AVCOL_PRI_BT709; //codec_context->color_trc = AVCOL_TRC_BT709; //codec_context->colorspace = AVCOL_SPC_BT709; @@ -366,7 +366,7 @@ static AVCodecContext *create_video_codec_context(AVPixelFormat pix_fmt, //codec_context->bit_rate = codec_context->width * codec_context->height; av_opt_set(codec_context->priv_data, "rc_mode", "CQP", 0); //codec_context->global_quality = 4; - codec_context->compression_level = 2; + //codec_context->compression_level = 2; } //codec_context->rc_max_rate = codec_context->bit_rate; |