Revision b795ff97

View differences:

libavformat/mpegts.c
1083 1083
        p = desc_list_end;
1084 1084
    }
1085 1085

  
1086
    /* all parameters are there */
1087
    mpegts_close_filter(ts, filter);
1088 1086
 out:
1089 1087
    av_free(mp4_dec_config_descr);
1090 1088
}
......
1122 1120
            /* NIT info */
1123 1121
        } else {
1124 1122
            av_new_program(ts->stream, sid);
1123
            if (ts->pids[pmt_pid])
1124
                mpegts_close_filter(ts, ts->pids[pmt_pid]);
1125 1125
            mpegts_open_section_filter(ts, pmt_pid, pmt_cb, ts, 1);
1126 1126
            add_pat_entry(ts, sid);
1127 1127
            add_pid_to_pmt(ts, sid, 0); //add pat pid to program

Also available in: Unified diff