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
This commit is contained in:
parent
6acd4d89d8
commit
8956f68014
@ -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…
x
Reference in New Issue
Block a user