diff mpeg.c @ 2932:f5de41d943e2 libavformat

user specifyable maximum amount of memory to use for the index. patch by Paul Kelly paul stjohnspoint co uk with some changes by me
author michael
date Sun, 13 Jan 2008 13:33:37 +0000
parents e5dfe3c96f3b
children dadfe1a02cec
line wrap: on
line diff
--- a/mpeg.c	Sat Jan 12 11:25:54 2008 +0000
+++ b/mpeg.c	Sun Jan 13 13:33:37 2008 +0000
@@ -386,6 +386,7 @@
         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? */);
             }
         }