summaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2015-05-01 02:13:26 +0200
committerMichael Niedermayer <michaelni@gmx.at>2015-05-01 02:13:26 +0200
commit4b6be54bed27eb7fc8f005505ff38e71b3c86cec (patch)
treee4c7bcdfd22edeaacacb0e1168d69e6633a347b5 /libavformat/mpegts.c
parent4e8d01f20ce82b49f47c704a461c5d30866affaf (diff)
downloadffmpeg-streaming-4b6be54bed27eb7fc8f005505ff38e71b3c86cec.zip
ffmpeg-streaming-4b6be54bed27eb7fc8f005505ff38e71b3c86cec.tar.gz
avformat/mpegts: reset last_ver on corrupted packets
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
index d707cc3..5100f37 100644
--- a/libavformat/mpegts.c
+++ b/libavformat/mpegts.c
@@ -426,8 +426,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;
+ }
}
}
OpenPOWER on IntegriCloud