summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc_h264.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-09-06 10:01:58 +0800
committerTimo Rothenpieler <timo@rothenpieler.org>2021-09-06 14:12:57 +0200
commite6bd5171ac47c6858889b483ddd77f8c49e1fba0 (patch)
tree74763faf3750f720431b5a563c30ab3ec85e703e /libavcodec/nvenc_h264.c
parent85489e03080a965ddb68fbfac0d929d2e6065b0e (diff)
downloadffmpeg-e6bd5171ac47c6858889b483ddd77f8c49e1fba0.tar.gz
avcodec/nvenc: add intra refresh support
Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc_h264.c')
-rw-r--r--libavcodec/nvenc_h264.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc_h264.c b/libavcodec/nvenc_h264.c
index fffdedcf6e..f00755530e 100644
--- a/libavcodec/nvenc_h264.c
+++ b/libavcodec/nvenc_h264.c
@@ -188,6 +188,8 @@ static const AVOption options[] = {
#endif
{ "extra_sei", "Pass on extra SEI data (e.g. a53 cc) to be included in the bitstream",
OFFSET(extra_sei), AV_OPT_TYPE_BOOL, { .i64 = 1 }, 0, 1, VE },
+ { "intra-refresh","Use Periodic Intra Refresh instead of IDR frames",
+ OFFSET(intra_refresh),AV_OPT_TYPE_BOOL, { .i64 = 0 }, 0, 1, VE },
{ NULL }
};