bundle/ffmpeg/libavformat/mpegtsenc.c
/* send SDT, PAT and PMT tables regulary */
send SDT, PAT and PMT tables regulary
send SDT PAT and PMT tables regulary
static void retransmit_si_info(AVFormatContext *s, int force_pat)
{
    MpegTSWrite *ts = s->priv_data;
    int i;
    if (++ts->sdt_packet_count == ts->sdt_packet_period) {
        ts->sdt_packet_count = 0;
        mpegts_write_sdt(s);
    }
    if (++ts->pat_packet_count == ts->pat_packet_period || force_pat) {
        ts->pat_packet_count = 0;
        mpegts_write_pat(s);
        for(i = 0; i < ts->nb_services; i++) {
            mpegts_write_pmt(s, ts->services[i]);
        }
    }
}
static void retransmit_si_info ( AVFormatContext * s , int force_pat ) { MpegTSWrite * ts = s -> priv_data ; int i ; if ( ++ ts -> sdt_packet_count == ts -> sdt_packet_period ) { ts -> sdt_packet_count = 0 ; mpegts_write_sdt ( s ) ; } if ( ++ ts -> pat_packet_count == ts -> pat_packet_period || force_pat ) { ts -> pat_packet_count = 0 ; mpegts_write_pat ( s ) ; for ( i = 0 ; i < ts -> nb_services ; i ++ ) { mpegts_write_pmt ( s , ts -> services [ i ] ) ; } } }
send SDT, PAT and PMT tables regulary
send SDT PAT and PMT tables regulary