diff options
author | Baptiste Coudurier <baptiste.coudurier@smartjog.com> | 2008-11-29 14:08:48 +0000 |
---|---|---|
committer | Stefano Sabatini <stefano.sabatini-lala@poste.it> | 2008-11-29 14:08:48 +0000 |
commit | 3bff4d8b7a9342e795c925ebab407cead2b9b54e (patch) | |
tree | 3c0aa9012cba95c2f5543d7b6334821bc908496c /libavcodec/utils.c | |
parent | cd0e37d3b16c403d922857ffb7df35ed6e89e50d (diff) | |
download | ffmpeg-streaming-3bff4d8b7a9342e795c925ebab407cead2b9b54e.zip ffmpeg-streaming-3bff4d8b7a9342e795c925ebab407cead2b9b54e.tar.gz |
Implement the fields rc_max_available_vbv_use and
rc_min_vbv_overflow_use in AVCodecContext, and use their values in the
ratecontrol code rather than hardcoded ones.
See the thread: "[RFC] ratecontrol buffer size magic".
Patch by Baptiste Coudurier.
Originally committed as revision 15955 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r-- | libavcodec/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c index 2f162bc..5debe04 100644 --- a/libavcodec/utils.c +++ b/libavcodec/utils.c @@ -743,6 +743,8 @@ static const AVOption options[]={ {"bits_per_raw_sample", NULL, OFFSET(bits_per_raw_sample), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX}, {"channel_layout", NULL, OFFSET(channel_layout), FF_OPT_TYPE_INT64, DEFAULT, 0, INT64_MAX, A|E|D, "channel_layout"}, {"request_channel_layout", NULL, OFFSET(request_channel_layout), FF_OPT_TYPE_INT64, DEFAULT, 0, INT64_MAX, A|D, "request_channel_layout"}, +{"rc_max_vbv_use", NULL, OFFSET(rc_max_available_vbv_use), FF_OPT_TYPE_FLOAT, 1.0/3, 0.0, FLT_MAX, V|E}, +{"rc_min_vbv_use", NULL, OFFSET(rc_min_vbv_overflow_use), FF_OPT_TYPE_FLOAT, 3, 0.0, FLT_MAX, V|E}, {NULL}, }; |