mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
mpegts: prevent freeing ones own section in pat_cb
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4392e69ad4
commit
eab022d863
@ -1594,6 +1594,9 @@ static void pat_cb(MpegTSFilter *filter, const uint8_t *section, int section_len
|
||||
break;
|
||||
pmt_pid &= 0x1fff;
|
||||
|
||||
if (pmt_pid == ts->current_pid)
|
||||
break;
|
||||
|
||||
av_dlog(ts->stream, "sid=0x%x pid=0x%x\n", sid, pmt_pid);
|
||||
|
||||
if (sid == 0x0000) {
|
||||
|
Loading…
Reference in New Issue
Block a user