diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index c6fd3e1cef..1da81a0fe6 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -2352,7 +2352,7 @@ static void pmt_cb(MpegTSFilter *filter, const uint8_t *section, int section_len goto out; // stop parsing after pmt, we found header - if (!ts->stream->nb_streams) + if (!ts->pkt) ts->stop_parse = 2; set_pmt_found(ts, h->id);