aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2023-03-10 10:16:09 +0100
committerdec05eba <dec05eba@protonmail.com>2023-03-10 10:16:09 +0100
commit689419a78238626aba887e974cbfcf5dff99de81 (patch)
tree79639fa08061fe86537ca7a294248230c18772a5 /src
parent8ca1ac70e8466d7aba0a57236a1d068939540a3f (diff)
Fix for ffmpeg 6 (nvenc hevc doesn't support b frames)
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp
index d007b0d..5581e77 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -413,6 +413,8 @@ static AVCodecContext *create_video_codec_context(AVPixelFormat pix_fmt,
codec_context->bit_rate = 0;
#endif
+ av_opt_set_int(codec_context->priv_data, "b_ref_mode", 0, 0);
+
//codec_context->rc_max_rate = codec_context->bit_rate;
//codec_context->rc_min_rate = codec_context->bit_rate;
//codec_context->rc_buffer_size = codec_context->bit_rate / 10;