[FFmpeg-cvslog] r21195 - trunk/libavformat/mpegtsenc.c
bcoudurier
subversion
Wed Jan 13 21:14:54 CET 2010
Author: bcoudurier
Date: Wed Jan 13 21:14:53 2010
New Revision: 21195
Log:
fix sdt, pat, pcr size computation, patch by Niobos, niobos at dest-unreach dot be
Modified:
trunk/libavformat/mpegtsenc.c
Modified: trunk/libavformat/mpegtsenc.c
==============================================================================
--- trunk/libavformat/mpegtsenc.c Wed Jan 13 19:27:21 2010 (r21194)
+++ trunk/libavformat/mpegtsenc.c Wed Jan 13 21:14:53 2010 (r21195)
@@ -473,9 +473,9 @@ static int mpegts_write_header(AVFormatC
total_bit_rate +=
total_bit_rate * 4 / TS_PACKET_SIZE + /* TS header size */
- SDT_RETRANS_TIME * 8 * sdt_size / 1000 + /* SDT size */
- PAT_RETRANS_TIME * 8 * pat_pmt_size / 1000 + /* PAT+PMT size */
- PCR_RETRANS_TIME * 8 * 8 / 1000; /* PCR size */
+ 1000 * 8 * sdt_size / PAT_RETRANS_TIME + /* SDT size */
+ 1000 * 8 * pat_pmt_size / SDT_RETRANS_TIME + /* PAT+PMT size */
+ 1000 * 8 * 8 / PCR_RETRANS_TIME; /* PCR size */
av_log(s, AV_LOG_DEBUG, "muxrate %d freq sdt %d pat %d\n",
total_bit_rate, ts->sdt_packet_period, ts->pat_packet_period);
More information about the ffmpeg-cvslog
mailing list