You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-16 22:42:38 +02:00
avformat/mpegts: reset last_ver on corrupted packets
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -426,8 +426,11 @@ static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1,
|
|||||||
}else
|
}else
|
||||||
crc_valid = 2;
|
crc_valid = 2;
|
||||||
}
|
}
|
||||||
if (crc_valid)
|
if (crc_valid) {
|
||||||
tss->section_cb(tss1, tss->section_buf, tss->section_h_size);
|
tss->section_cb(tss1, tss->section_buf, tss->section_h_size);
|
||||||
|
if (crc_valid != 1)
|
||||||
|
tss->last_ver = -1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user