diff options
author | Niobos <niobos@dest-unreach.be> | 2010-01-13 20:20:05 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2010-01-13 20:20:05 +0000 |
commit | 906c16a11a9219803fc083a7b7b759ed2604057a (patch) | |
tree | 4b1019bdf43ca281e5e34aef49a78881e22e5340 | |
parent | 080cabffca4331a028c52a768f685da91e9a0763 (diff) | |
download | ffmpeg-906c16a11a9219803fc083a7b7b759ed2604057a.tar.gz |
fix ts packet header size computation, patch by Niobos, niobos at dest-unreach dot be
Originally committed as revision 21196 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mpegtsenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/mpegtsenc.c b/libavformat/mpegtsenc.c index 029d894689..e2830683e8 100644 --- a/libavformat/mpegtsenc.c +++ b/libavformat/mpegtsenc.c @@ -472,7 +472,7 @@ static int mpegts_write_header(AVFormatContext *s) pat_pmt_size = url_ftell(s->pb) - pos; total_bit_rate += - total_bit_rate * 4 / TS_PACKET_SIZE + /* TS header size */ + total_bit_rate * 4 / (TS_PACKET_SIZE-4) + /* TS header 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 */ |