comparison 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
comparison
equal deleted inserted replaced
2931:83790e20f993 2932:f5de41d943e2
384 goto error_redo; 384 goto error_redo;
385 if(dts != AV_NOPTS_VALUE && ppos){ 385 if(dts != AV_NOPTS_VALUE && ppos){
386 int i; 386 int i;
387 for(i=0; i<s->nb_streams; i++){ 387 for(i=0; i<s->nb_streams; i++){
388 if(startcode == s->streams[i]->id) { 388 if(startcode == s->streams[i]->id) {
389 ff_reduce_index(s, i);
389 av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */); 390 av_add_index_entry(s->streams[i], *ppos, dts, 0, 0, AVINDEX_KEYFRAME /* FIXME keyframe? */);
390 } 391 }
391 } 392 }
392 } 393 }
393 394