diff mpegtsenc.c @ 4215:f7321bb14421 libavformat

allow user to specify muxrate
author bcoudurier
date Wed, 14 Jan 2009 23:30:49 +0000
parents 5720e5948e0b
children de2177071c01
line wrap: on
line diff
--- a/mpegtsenc.c	Wed Jan 14 22:40:37 2009 +0000
+++ b/mpegtsenc.c	Wed Jan 14 23:30:49 2009 +0000
@@ -445,7 +445,10 @@
            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 */