]> git.sesse.net Git - ffmpeg/commit
avformat/mpegts: only clear programs which no longer exist or have a new PMT
authorMarton Balint <cus@passwd.hu>
Sun, 27 Dec 2020 22:05:16 +0000 (23:05 +0100)
committerMarton Balint <cus@passwd.hu>
Sat, 9 Jan 2021 21:38:12 +0000 (22:38 +0100)
commitf143a6c1515cb0c4db4dbead46d0e7c53fafc5db
tree860d0749e2c8b058ebe4b9697ac3369147831024
parent10c8e532943cc1339cf42d3f84eed4eafd8b0ca8
avformat/mpegts: only clear programs which no longer exist or have a new PMT

Otherwise there can be a small period when the programs only contain the PMT
pid.

Also make sure skip_clear only affects AVProgram clear, and that pmt_pid is
always kept as the first entry of the PID list of the programs. Also reject
PMTs for programs on the wrong PID.

Signed-off-by: Marton Balint <cus@passwd.hu>
libavformat/mpegts.c