summaryrefslogtreecommitdiff
path: root/libavcodec/nvenc.h
diff options
context:
space:
mode:
authorpkviet <pkv.stream@gmail.com>2018-05-03 02:15:52 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2018-05-04 23:35:38 +0200
commit155375123c1f2e41f97057f00e65bcbb20f7833a (patch)
tree26a72c22a473af1e9c77e434931ff62fbfec574f /libavcodec/nvenc.h
parent952421cd20ace9f0dccbf37e9ab9c165a68d17d0 (diff)
avcodec/nvenc: support dynamic bitrate changes
The patch enables dynamic bitrate through ReconfigureEncoder method from nvenc API. This is useful for live streaming in case of network congestion. Signed-off-by: pkviet <pkv.stream@gmail.com> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
Diffstat (limited to 'libavcodec/nvenc.h')
-rw-r--r--libavcodec/nvenc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/nvenc.h b/libavcodec/nvenc.h
index c7506d6a15..b29fbf282a 100644
--- a/libavcodec/nvenc.h
+++ b/libavcodec/nvenc.h
@@ -152,6 +152,8 @@ typedef struct NvencContext
int64_t initial_pts[2];
int first_packet_output;
+ int support_dyn_bitrate;
+
void *nvencoder;
int preset;