Mercurial > libavformat.hg
changeset 563:d141aa45ca86 libavformat
fix assertion failure in case of timestamp discontinuities
author | michael |
---|---|
date | Wed, 13 Oct 2004 23:58:28 +0000 |
parents | bf3231dd1d7c |
children | a9e04ea89942 |
files | utils.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Wed Oct 13 00:03:00 2004 +0000 +++ b/utils.c Wed Oct 13 23:58:28 2004 +0000 @@ -932,7 +932,8 @@ }else{ ie= &entries[index]; if(ie->timestamp != timestamp){ - assert(ie->timestamp > timestamp); + if(ie->timestamp <= timestamp) + return -1; 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