[FFmpeg-cvslog] avformat/mpegenc: fix muxrates AVOption maximum value
Michael Niedermayer
git at videolan.org
Sun Sep 29 17:09:17 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Sep 29 17:00:54 2013 +0200| [28d35dbe9f570025c220c08997bc11e21b3c1a66] | committer: Michael Niedermayer
avformat/mpegenc: fix muxrates AVOption maximum value
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=28d35dbe9f570025c220c08997bc11e21b3c1a66
---
libavformat/mpegenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c
index ad07aa6..1a7f64a 100644
--- a/libavformat/mpegenc.c
+++ b/libavformat/mpegenc.c
@@ -1146,7 +1146,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(user_mux_rate), AV_OPT_TYPE_INT, {.i64 = 0}, 0, INT_MAX, E },
+ { "muxrate", NULL, OFFSET(user_mux_rate), AV_OPT_TYPE_INT, {.i64 = 0}, 0, ((1<<22) - 1) * (8 * 50), E },
{ "preload", "Initial demux-decode delay in microseconds.", OFFSET(preload), AV_OPT_TYPE_INT, {.i64 = 500000}, 0, INT_MAX, E},
{ NULL },
};
More information about the ffmpeg-cvslog
mailing list