summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.c
diff options
context:
space:
mode:
authorRoman Arzumanyan <rarzumanyan@nvidia.com>2019-02-14 13:20:25 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2019-02-14 13:22:09 +0100
commitf1f66df6a204fdc08b8763004de2df3e20bab8f3 (patch)
tree635b459f1d4f92265d469d0480127a2d3e489422 /libavcodec/nvenc.c
parent15c6390139096b7e7634bf0f6aaab1cd8b3aa509 (diff)
avcodec/nvenc: add b_as_ref support for HEVC
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.c')
-rw-r--r--libavcodec/nvenc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/nvenc.c b/libavcodec/nvenc.c
index 97497be0bc..304a684e0c 100644
--- a/libavcodec/nvenc.c
+++ b/libavcodec/nvenc.c
@@ -1070,6 +1070,10 @@ static av_cold int nvenc_setup_hevc_config(AVCodecContext *avctx)
hevc->tier = ctx->tier;
+#ifdef NVENC_HAVE_HEVC_BFRAME_REF_MODE
+ hevc->useBFramesAsRef = ctx->b_ref_mode;
+#endif
+
return 0;
}