Commit 4b6be54b authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mpegts: reset last_ver on corrupted packets

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4e8d01f2
...@@ -426,8 +426,11 @@ static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1, ...@@ -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;
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment