Commit 4efe0239 authored by mbardiaux's avatar mbardiaux

Suppress runaway index on streamed input

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11527 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 82239912
...@@ -385,7 +385,8 @@ static int mpegps_read_pes_header(AVFormatContext *s, ...@@ -385,7 +385,8 @@ static int mpegps_read_pes_header(AVFormatContext *s,
if(dts != AV_NOPTS_VALUE && ppos){ if(dts != AV_NOPTS_VALUE && ppos){
int i; int i;
for(i=0; i<s->nb_streams; i++){ for(i=0; i<s->nb_streams; i++){
if(startcode == s->streams[i]->id) { if(startcode == s->streams[i]->id &&
!url_is_streamed(s->pb) /* index useless on streams anyway */) {
ff_reduce_index(s, i); ff_reduce_index(s, i);
av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */); av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */);
} }
......
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