diff options
author | Anton Khirnov <anton@khirnov.net> | 2014-08-25 21:21:57 +0000 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2014-08-27 06:21:54 +0000 |
commit | 75bbaf2493a71ee66eaabe3c21fadd84d07888de (patch) | |
tree | aa7f29612fef0e81ed757ecae7bc1c2dee12abc8 | |
parent | e87f5e4e5f2e2e36b0b7826d708cda7049877af0 (diff) | |
download | ffmpeg-75bbaf2493a71ee66eaabe3c21fadd84d07888de.tar.gz |
mpegenc: limit the maximum muxrate
It is written to the file as a 22-bit value.
CC: libav-stable@libav.org
-rw-r--r-- | libavformat/mpegenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 02437a8cf6..fed03ed31f 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -1162,7 +1162,7 @@ static int mpeg_mux_end(AVFormatContext *ctx) #define OFFSET(x) offsetof(MpegMuxContext, x) #define E AV_OPT_FLAG_ENCODING_PARAM static const AVOption options[] = { - { "muxrate", NULL, OFFSET(mux_rate), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, INT_MAX, E }, + { "muxrate", NULL, OFFSET(mux_rate), AV_OPT_TYPE_INT, { .i64 = 0 }, 0, (1 << 22) - 1, E }, { "preload", "Initial demux-decode delay in microseconds.", OFFSET(preload), AV_OPT_TYPE_INT, { .i64 = 500000 }, 0, INT_MAX, E }, { NULL }, }; |