diff options
author | Stefano Sabatini <stefasab@gmail.com> | 2012-11-03 17:01:08 +0100 |
---|---|---|
committer | Stefano Sabatini <stefasab@gmail.com> | 2012-11-03 20:38:02 +0100 |
commit | 0372ecfa48252b579b1f84d2ad14cc1b59743a83 (patch) | |
tree | af84e4de1316b6da56b86e3e8f33d1d13bb1e65a /libavcodec | |
parent | 930226cf52ad279accd356767269c87e79c31444 (diff) | |
download | ffmpeg-0372ecfa48252b579b1f84d2ad14cc1b59743a83.tar.gz |
lavc/options_table: force non-negative bitrate range
It does not make sense to set a negative bitrate.
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/options_table.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/options_table.h b/libavcodec/options_table.h index 1a420ef9f2..2ddfad0688 100644 --- a/libavcodec/options_table.h +++ b/libavcodec/options_table.h @@ -42,8 +42,8 @@ #define AV_CODEC_DEFAULT_BITRATE 200*1000 static const AVOption options[]={ -{"b", "set bitrate (in bits/s)", OFFSET(bit_rate), AV_OPT_TYPE_INT, {.i64 = AV_CODEC_DEFAULT_BITRATE }, INT_MIN, INT_MAX, A|V|E}, -{"ab", "set bitrate (in bits/s)", OFFSET(bit_rate), AV_OPT_TYPE_INT, {.i64 = 128*1000 }, INT_MIN, INT_MAX, A|E}, +{"b", "set bitrate (in bits/s)", OFFSET(bit_rate), AV_OPT_TYPE_INT, {.i64 = AV_CODEC_DEFAULT_BITRATE }, 0, INT_MAX, A|V|E}, +{"ab", "set bitrate (in bits/s)", OFFSET(bit_rate), AV_OPT_TYPE_INT, {.i64 = 128*1000 }, 0, INT_MAX, A|E}, {"bt", "Set video bitrate tolerance (in bits/s). In 1-pass mode, bitrate tolerance specifies how far " "ratecontrol is willing to deviate from the target average bitrate value. This is not related " "to min/max bitrate. Lowering tolerance too much has an adverse effect on quality.", |