Revision 906c16a1

View differences:

libavformat/mpegtsenc.c
472 472
    pat_pmt_size = url_ftell(s->pb) - pos;
473 473

  
474 474
    total_bit_rate +=
475
        total_bit_rate *  4 / TS_PACKET_SIZE           + /* TS  header size */
475
        total_bit_rate * 4 / (TS_PACKET_SIZE-4)        + /* TS header size */
476 476
        1000 * 8 * sdt_size     / PAT_RETRANS_TIME     + /* SDT size */
477 477
        1000 * 8 * pat_pmt_size / SDT_RETRANS_TIME     + /* PAT+PMT size */
478 478
        1000 * 8 * 8            / PCR_RETRANS_TIME;      /* PCR size */

Also available in: Unified diff