diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 406e5bfb52..b4d46aa11e 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -538,7 +538,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len case STREAM_TYPE_AUDIO_DTS: case STREAM_TYPE_SUBTITLE_DVB: if(ts->pids[pid]){ - assert(ts->pids[pid].type == MPEGTS_PES); + assert(ts->pids[pid]->type == MPEGTS_PES); pes= ts->pids[pid]->u.pes_filter.opaque; st= pes->st; }else{