Revision 080cabff libavformat/mpegtsenc.c

View differences:

libavformat/mpegtsenc.c
473 473

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

  
480 480
    av_log(s, AV_LOG_DEBUG, "muxrate %d freq sdt %d pat %d\n",
481 481
           total_bit_rate, ts->sdt_packet_period, ts->pat_packet_period);

Also available in: Unified diff