Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNiobos <niobos@dest-unreach.be>2010-01-13 23:14:53 +0300
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2010-01-13 23:14:53 +0300
commit080cabffca4331a028c52a768f685da91e9a0763 (patch)
treeb7e1a420c25cf05ec691699db1b4def1ec9a1620 /libavformat/mpegtsenc.c
parentfad9a42ad481524577866cde2edaf7d9b2da0f24 (diff)
fix sdt, pat, pcr size computation, patch by Niobos, niobos at dest-unreach dot be
Originally committed as revision 21195 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpegtsenc.c')
-rw-r--r--libavformat/mpegtsenc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c
index a8d5d38129..029d894689 100644
--- a/libavformat/mpegtsenc.c
+++ b/libavformat/mpegtsenc.c
@@ -473,9 +473,9 @@ static int mpegts_write_header(AVFormatContext *s)
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);