[FFmpeg-cvslog] avformat/mpegts: reset last_ver on corrupted packets
Michael Niedermayer
git at videolan.org
Tue May 19 21:06:46 CEST 2015
ffmpeg | branch: release/2.4 | Michael Niedermayer <michaelni at 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 <michaelni at gmx.at>
(cherry picked from commit 4b6be54bed27eb7fc8f005505ff38e71b3c86cec)
Signed-off-by: Michael Niedermayer <michaelni at 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;
+ }
}
}
More information about the ffmpeg-cvslog
mailing list