Hi, > i think there is a easier solution > just check for AVFMT_TS_DISCONT which would prevent misdetection in all > containers that do not allow discontinuities. But we _do_ have containers with AVFMT_TS_DISCONT which can have subtitles in them (dvbsub in mpegts, dvdsub in mpeg), so this wouldn't help. Regards, Wolfram.