[FFmpeg-cvslog] r19835 - trunk/libavformat/mpegts.c

bcoudurier subversion
Sun Sep 13 22:06:49 CEST 2009


Author: bcoudurier
Date: Sun Sep 13 22:06:49 2009
New Revision: 19835

Log:
reset pes state to skip after flushing, avoid segv with dvgrab-2009.03.28_19-07-22.m2t

Modified:
   trunk/libavformat/mpegts.c

Modified: trunk/libavformat/mpegts.c
==============================================================================
--- trunk/libavformat/mpegts.c	Sun Sep 13 21:17:02 2009	(r19834)
+++ trunk/libavformat/mpegts.c	Sun Sep 13 22:06:49 2009	(r19835)
@@ -1461,6 +1461,7 @@ static int mpegts_read_packet(AVFormatCo
                 PESContext *pes = ts->pids[i]->u.pes_filter.opaque;
                 if (pes->state == MPEGTS_PAYLOAD && pes->data_index > 0) {
                     new_pes_packet(pes, pkt);
+                    pes->state = MPEGTS_SKIP;
                     ret = 0;
                     break;
                 }



More information about the ffmpeg-cvslog mailing list