mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-14 03:04:53 +00:00
dont reduce the min_distance of AVIndexEntry
Originally committed as revision 2979 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
21f52609dd
commit
c9247fc37a
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user