Commit 8956f680 authored by Baptiste Coudurier's avatar Baptiste Coudurier

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
parent 6acd4d89
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment