diff options
author | Srinath K R <skr@nvidia.com> | 2017-06-08 14:43:54 +0530 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2017-06-10 17:30:32 +0200 |
commit | 98ea98069b40c34aa7b762096f8f380012a7dd84 (patch) | |
tree | 7c3aaafc943645421d8ad6ddf95e05751808926a /libavcodec/nvenc_h264.c | |
parent | f9e7a2f95a7194a8736cc1416a03a1a0155a3e9f (diff) | |
download | ffmpeg-streaming-98ea98069b40c34aa7b762096f8f380012a7dd84.zip ffmpeg-streaming-98ea98069b40c34aa7b762096f8f380012a7dd84.tar.gz |
nvenc: Add default value for AVCodecContext::refs
AVCodecContext::refs is used to control the DPB size to be used by the
encoder. The default value for AVCodecContext::refs as set in
libavcodec/options_table.h is 1.
This patch sets AVCodecContext::refs to 0 for h264_nvenc and hevc_nvenc in
order to let the driver take the decision of the correct DPB size to use in
all cases.
Signed-off-by: Srinath K R <skr@nvidia.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/nvenc_h264.c')
-rw-r--r-- | libavcodec/nvenc_h264.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c index 1419c86..f7e5cd0 100644 --- a/libavcodec/nvenc_h264.c +++ b/libavcodec/nvenc_h264.c @@ -109,6 +109,7 @@ static const AVCodecDefault defaults[] = { { "qdiff", "-1" }, { "qblur", "-1" }, { "qcomp", "-1" }, + { "refs", "0" }, { NULL }, }; |