projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c91414
)
mpegenc: limit the maximum muxrate
author
Anton Khirnov
<anton@khirnov.net>
Mon, 25 Aug 2014 21:21:57 +0000
(21:21 +0000)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 27 Aug 2014 06:25:24 +0000
(06:25 +0000)
It is written to the file as a 22-bit value.
CC: libav-stable@libav.org
(cherry picked from commit
75bbaf2493a71ee66eaabe3c21fadd84d07888de
)
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/mpegenc.c
patch
|
blob
|
history
diff --git
a/libavformat/mpegenc.c
b/libavformat/mpegenc.c
index 1ba7647e80b6919cc2fe5cfd8a68402a5006afee..88590b305b9270e9a5f111e47fbba8da2747e592 100644
(file)
--- a/
libavformat/mpegenc.c
+++ b/
libavformat/mpegenc.c
@@
-1157,7
+1157,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 },
};