ffmpeg | branch: master | Michael Niedermayer <[email protected]> | 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 <[email protected]>

> 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
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to