changeset 6244:17483b8b01e7 libavformat

In mpegts muxer, print VBR instead of dummy 1 when displaying muxrate
author bcoudurier
date Thu, 08 Jul 2010 22:01:31 +0000
parents 40f3dc7e5fcb
children ef4606cc4fb3
files mpegtsenc.c
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mpegtsenc.c	Thu Jul 08 21:57:20 2010 +0000
+++ b/mpegtsenc.c	Thu Jul 08 22:01:31 2010 +0000
@@ -510,13 +510,15 @@
     ts->pat_packet_count = ts->pat_packet_period-1;
     ts->sdt_packet_count = ts->sdt_packet_period-1;
 
-    av_log(s, AV_LOG_INFO,
-           "muxrate %d bps, pcr every %d pkts, "
+    if (ts->mux_rate == 1)
+        av_log(s, AV_LOG_INFO, "muxrate VBR, ");
+    else
+        av_log(s, AV_LOG_INFO, "muxrate %d, ", ts->mux_rate);
+    av_log(s, AV_LOG_INFO, "pcr every %d pkts, "
            "sdt every %d, pat/pmt every %d pkts\n",
-           ts->mux_rate, service->pcr_packet_period,
+           service->pcr_packet_period,
            ts->sdt_packet_period, ts->pat_packet_period);
 
-
     put_flush_packet(s->pb);
 
     return 0;