summaryrefslogtreecommitdiff
path: root/libavformat/mpeg.c
diff options
context:
space:
mode:
authorPaul Kelly <paul@stjohnspoint.co.uk>2008-01-13 13:33:37 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-01-13 13:33:37 +0000
commit3dea63bd7e611b625d135fe9bc8b3cef891bc757 (patch)
treeac9bb100ccb98d185503c44954626f481486ead8 /libavformat/mpeg.c
parent3ed546fe525eace861e708ab970cf91f69bfdd09 (diff)
user specifyable maximum amount of memory to use for the index.
patch by Paul Kelly paul stjohnspoint co uk with some changes by me Originally committed as revision 11521 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mpeg.c')
-rw-r--r--libavformat/mpeg.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
index d044d07f41..aca9db2bb9 100644
--- a/libavformat/mpeg.c
+++ b/libavformat/mpeg.c
@@ -386,6 +386,7 @@ static int mpegps_read_pes_header(AVFormatContext *s,
int i;
for(i=0; i<s->nb_streams; i++){
if(startcode == s->streams[i]->id) {
+ ff_reduce_index(s, i);
av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */);
}
}