Browse Source

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
tags/v0.6
Baptiste Coudurier 15 years ago
parent
commit
8956f68014
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/mpegts.c

+ 1
- 0
libavformat/mpegts.c View File

@@ -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;
}


Loading…
Cancel
Save