diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 9a553554db..a21668d3c1 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -447,6 +447,7 @@ static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1, offset += tss->section_h_size; tss->section_h_size = -1; } else { + tss->section_h_size = -1; tss->end_of_section_reached = 0; break; }