static int add_pes_stream(MpegTSContext *ts, int pid)
static int add_pes_stream(MpegTSContext *ts, int pid, int stream_type)
static int add_pes_stream(MpegTSContext *ts, int pid){    MpegTSFilter *tss;    PESContext *pes;    /* if no pid found, then add a pid context */    pes = av_mallocz(sizeof(PESContext));    if (!pes)        return -1;    pes->ts = ts;    pes->stream = ts->stream;    pes->pid = pid;    tss = mpegts_open_pes_filter(ts, pid, mpegts_push_data, pes);    if (!tss) {        av_free(pes);        return -1;    }    return 0;}