summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorRicardo Monteiro <rmonteiro@nvidia.com>2021-02-19 11:47:37 +0100
committerTimo Rothenpieler <timo@rothenpieler.org>2021-02-22 16:35:08 +0100
commita0949d0bcb0eee2f3fffcf9a4810c0295d14c0dc (patch)
tree270b28d2f00b63431542d49628950cb9928ac341 /libavcodec
parent82a2cbf820420bfd7f8df6284dcb94c415ce6f09 (diff)
downloadffmpeg-a0949d0bcb0eee2f3fffcf9a4810c0295d14c0dc.tar.gz
avcodec/nvenc: don't disable b-frames by default
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/nvenc_h264.c2
-rw-r--r--libavcodec/nvenc_hevc.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c
index 750ff33c2e..4c118d3138 100644
--- a/libavcodec/nvenc_h264.c
+++ b/libavcodec/nvenc_h264.c
@@ -193,7 +193,7 @@ static const AVCodecDefault defaults[] = {
{ "qblur", "-1" },
{ "qcomp", "-1" },
{ "g", "250" },
- { "bf", "0" },
+ { "bf", "-1" },
{ "refs", "0" },
{ NULL },
};
diff --git a/libavcodec/nvenc_hevc.c b/libavcodec/nvenc_hevc.c
index 37c2ebe388..031d2ef44e 100644
--- a/libavcodec/nvenc_hevc.c
+++ b/libavcodec/nvenc_hevc.c
@@ -174,7 +174,7 @@ static const AVCodecDefault defaults[] = {
{ "qblur", "-1" },
{ "qcomp", "-1" },
{ "g", "250" },
- { "bf", "0" },
+ { "bf", "-1" },
{ "refs", "0" },
{ NULL },
};