From 3dea63bd7e611b625d135fe9bc8b3cef891bc757 Mon Sep 17 00:00:00 2001 From: Paul Kelly Date: Sun, 13 Jan 2008 13:33:37 +0000 Subject: 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 --- libavformat/mpeg.c | 1 + 1 file changed, 1 insertion(+) (limited to 'libavformat/mpeg.c') 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; inb_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? */); } } -- cgit v1.2.3