Mercurial > libavformat.hg
changeset 2934:dadfe1a02cec libavformat
Suppress runaway index on streamed input
author | mbardiaux |
---|---|
date | Mon, 14 Jan 2008 16:11:08 +0000 |
parents | 473906f5a3b9 |
children | 88a67636f192 |
files | mpeg.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpeg.c Sun Jan 13 15:08:33 2008 +0000 +++ b/mpeg.c Mon Jan 14 16:11:08 2008 +0000 @@ -385,7 +385,8 @@ if(dts != AV_NOPTS_VALUE && ppos){ int 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); av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */); }