diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index b808c40162..8cd81d6d47 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1229,7 +1229,7 @@ static void m4sl_cb(MpegTSFilter *filter, const uint8_t *section, int section_le AVStream *st; if (ts->pids[pid]->es_id != mp4_descr[i].es_id) continue; - if (!(ts->pids[pid] && ts->pids[pid]->type == MPEGTS_PES)) { + if (ts->pids[pid]->type != MPEGTS_PES) { av_log(s, AV_LOG_ERROR, "pid %x is not PES\n", pid); continue; }