Mercurial > libavformat.hg
diff utils.c @ 5628:ee642c4e5b5c libavformat
Dont try generic seek if seek request before first index entry and backward.
Fixes issue1275
author | michael |
---|---|
date | Wed, 03 Feb 2010 23:59:48 +0000 |
parents | 93c777b5ada3 |
children | c6b8b3403a55 |
line wrap: on
line diff
--- a/utils.c Wed Feb 03 23:05:58 2010 +0000 +++ b/utils.c Wed Feb 03 23:59:48 2010 +0000 @@ -1548,6 +1548,9 @@ index = av_index_search_timestamp(st, timestamp, flags); + if(index < 0 && st->nb_index_entries && timestamp < st->index_entries[0].timestamp) + return -1; + if(index < 0 || index==st->nb_index_entries-1){ int i; AVPacket pkt;