Commit 48dda941 authored by bcoudurier's avatar bcoudurier

fix ts packet header size computation, patch by Niobos, niobos at dest-unreach dot be

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21196 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3a9f6481
...@@ -472,7 +472,7 @@ static int mpegts_write_header(AVFormatContext *s) ...@@ -472,7 +472,7 @@ static int mpegts_write_header(AVFormatContext *s)
pat_pmt_size = url_ftell(s->pb) - pos; pat_pmt_size = url_ftell(s->pb) - pos;
total_bit_rate += 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 * sdt_size / PAT_RETRANS_TIME + /* SDT size */
1000 * 8 * pat_pmt_size / SDT_RETRANS_TIME + /* PAT+PMT size */ 1000 * 8 * pat_pmt_size / SDT_RETRANS_TIME + /* PAT+PMT size */
1000 * 8 * 8 / PCR_RETRANS_TIME; /* PCR size */ 1000 * 8 * 8 / PCR_RETRANS_TIME; /* PCR size */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment