Revision e3433702

View differences:

libavformat/mpegtsenc.c
450 450
    ts->mux_rate = s->mux_rate ? s->mux_rate : 1;
451 451

  
452 452
    if (ts->mux_rate > 1) {
453
    service->pcr_packet_period = (ts->mux_rate * PCR_RETRANS_TIME) /
454
        (TS_PACKET_SIZE * 8 * 1000);
455
    ts->sdt_packet_period      = (ts->mux_rate * SDT_RETRANS_TIME) /
456
        (TS_PACKET_SIZE * 8 * 1000);
457
    ts->pat_packet_period      = (ts->mux_rate * PAT_RETRANS_TIME) /
458
        (TS_PACKET_SIZE * 8 * 1000);
459

  
460
    ts->cur_pcr = av_rescale(s->max_delay, 90000, AV_TIME_BASE);
453
        service->pcr_packet_period = (ts->mux_rate * PCR_RETRANS_TIME) /
454
            (TS_PACKET_SIZE * 8 * 1000);
455
        ts->sdt_packet_period      = (ts->mux_rate * SDT_RETRANS_TIME) /
456
            (TS_PACKET_SIZE * 8 * 1000);
457
        ts->pat_packet_period      = (ts->mux_rate * PAT_RETRANS_TIME) /
458
            (TS_PACKET_SIZE * 8 * 1000);
459

  
460
        ts->cur_pcr = av_rescale(s->max_delay, 90000, AV_TIME_BASE);
461 461
    } else {
462 462
        /* Arbitrary values, PAT/PMT could be written on key frames */
463 463
        ts->sdt_packet_period = 200;

Also available in: Unified diff