[FFmpeg-cvslog] r16609 - trunk/libavformat/mpegtsenc.c

bcoudurier subversion
Thu Jan 15 00:30:49 CET 2009


Author: bcoudurier
Date: Thu Jan 15 00:30:49 2009
New Revision: 16609

Log:
allow user to specify muxrate

Modified:
   trunk/libavformat/mpegtsenc.c

Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c	Thu Jan 15 00:20:43 2009	(r16608)
+++ trunk/libavformat/mpegtsenc.c	Thu Jan 15 00:30:49 2009	(r16609)
@@ -445,7 +445,10 @@ static int mpegts_write_header(AVFormatC
            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 */




More information about the ffmpeg-cvslog mailing list