Commit bf48e39f authored by bcoudurier's avatar bcoudurier

reset pes state to skip after flushing, avoid segv with dvgrab-2009.03.28_19-07-22.m2t

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19835 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 3d2d3ebe
......@@ -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