aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-14 23:30:49 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-01-14 23:30:49 +0000
commit620b9df7a76e6937bce8484316ce3c01083098e2 (patch)
treef1acfa6887392e9bd6b9aa8c0db79b8eeaacda7d
parent469f5f251dc3acbb4c4fd12c597d57768119af4a (diff)
downloadffmpeg-620b9df7a76e6937bce8484316ce3c01083098e2.tar.gz
allow user to specify muxrate
Originally committed as revision 16609 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/mpegtsenc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index 6c31f6df51..9713bd9d84 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -445,7 +445,10 @@ static int mpegts_write_header(AVFormatContext *s)
total_bit_rate, ts->sdt_packet_freq, ts->pat_packet_freq);
#endif
- ts->mux_rate = total_bit_rate;
+ if (s->mux_rate)
+ ts->mux_rate = s->mux_rate;
+ else
+ ts->mux_rate = total_bit_rate;
/* write info at the start of the file, so that it will be fast to
find them */