aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-01 02:13:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-19 20:57:42 +0200
commit5b1befb074cfcb0590f0f4d1cc352630d0609336 (patch)
tree317ee27e0af9a7d4bf932ea64cbaf30a6bdf594a
parent3d296c0ec1d517260a658f02b5404def689918ab (diff)
downloadffmpeg-5b1befb074cfcb0590f0f4d1cc352630d0609336.tar.gz
avformat/mpegts: reset last_ver on corrupted packets
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit 4b6be54bed27eb7fc8f005505ff38e71b3c86cec) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/mpegts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index 62ecd64559..8f035006ab 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -416,8 +416,11 @@ static void write_section_data(MpegTSContext *ts, MpegTSFilter *tss1,
}else
crc_valid = 2;
}
- if (crc_valid)
+ if (crc_valid) {
tss->section_cb(tss1, tss->section_buf, tss->section_h_size);
+ if (crc_valid != 1)
+ tss->last_ver = -1;
+ }
}
}