[FFmpeg-cvslog] avformat/mpegts: reset last_ver on corrupted packets
ffmpeg | branch: release/2.4 | Michael Niedermayer michae...@gmx.at | Fri May 1 02:13:26 2015 +0200| [5b1befb074cfcb0590f0f4d1cc352630d0609336] | committer: Michael Niedermayer avformat/mpegts: reset last_ver on corrupted packets Signed-off-by: Michael Niedermayer michae...@gmx.at (cherry picked from commit 4b6be54bed27eb7fc8f005505ff38e71b3c86cec) Signed-off-by: Michael Niedermayer michae...@gmx.at http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5b1befb074cfcb0590f0f4d1cc352630d0609336 --- libavformat/mpegts.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 62ecd64..8f03500 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; +} } } ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog
[FFmpeg-cvslog] avformat/mpegts: reset last_ver on corrupted packets
ffmpeg | branch: master | Michael Niedermayer michae...@gmx.at | Fri May 1 02:13:26 2015 +0200| [4b6be54bed27eb7fc8f005505ff38e71b3c86cec] | committer: Michael Niedermayer avformat/mpegts: reset last_ver on corrupted packets Signed-off-by: Michael Niedermayer michae...@gmx.at http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=4b6be54bed27eb7fc8f005505ff38e71b3c86cec --- libavformat/mpegts.c |5 - 1 file changed, 4 insertions(+), 1 deletion(-) 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; +} } } ___ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog