diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-04-07 21:33:53 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-04-07 21:33:53 +0000 |
commit | c9247fc37af21b83b5406f5491be2a1226d1a045 (patch) | |
tree | bc557f33e469ff98969dfcd8467416a09ed1b61f /libavformat | |
parent | 21f52609dd770bcd5dd37cee5c9a7d6ea09842f9 (diff) | |
download | ffmpeg-c9247fc37af21b83b5406f5491be2a1226d1a045.tar.gz |
dont reduce the min_distance of AVIndexEntry
Originally committed as revision 2979 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/utils.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 6a445e2589..ad51b04beb 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -915,6 +915,9 @@ int av_add_index_entry(AVStream *st, memmove(entries + index + 1, entries + index, sizeof(AVIndexEntry)*(st->nb_index_entries - index)); } st->nb_index_entries++; + }else{ + if(ie->pos == pos && distance < ie->min_distance) //dont reduce the distance + distance= ie->min_distance; } }else{ index= st->nb_index_entries++; |