changeset 5174:664c0b8ae082 libavformat

reset pes state to skip after flushing, avoid segv with dvgrab-2009.03.28_19-07-22.m2t
author bcoudurier
date Sun, 13 Sep 2009 20:06:49 +0000
parents 948db02fab55
children 1dbe578de8e6
files mpegts.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mpegts.c	Sun Sep 13 18:27:53 2009 +0000
+++ b/mpegts.c	Sun Sep 13 20:06:49 2009 +0000
@@ -1461,6 +1461,7 @@
                 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;
                 }