[FFmpeg-cvslog] r24125 - trunk/libavformat/mpegtsenc.c
bcoudurier
subversion
Fri Jul 9 00:01:31 CEST 2010
Author: bcoudurier
Date: Fri Jul 9 00:01:31 2010
New Revision: 24125
Log:
In mpegts muxer, print VBR instead of dummy 1 when displaying muxrate
Modified:
trunk/libavformat/mpegtsenc.c
Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c Thu Jul 8 23:57:20 2010 (r24124)
+++ trunk/libavformat/mpegtsenc.c Fri Jul 9 00:01:31 2010 (r24125)
@@ -510,13 +510,15 @@ static int mpegts_write_header(AVFormatC
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;
More information about the ffmpeg-cvslog
mailing list