From 8956f68014b7ff2fdb529e7b9448d04876e8a006 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier <baptiste.coudurier@gmail.com> Date: Sun, 13 Sep 2009 20:06:49 +0000 Subject: [PATCH] reset pes state to skip after flushing, avoid segv with dvgrab-2009.03.28_19-07-22.m2t Originally committed as revision 19835 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpegts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index b1aca88ba23..90510de99eb 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -1461,6 +1461,7 @@ static int mpegts_read_packet(AVFormatContext *s, 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; } -- GitLab