mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-11-16 07:32:34 +03:00
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:
1 parent
6acd4d89d8
commit
8956f68014
1 file changed
+1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user