OSDN Git Service

WavPack demuxer: do not rely on index when timestamp is not in indexed range.
authorKostya Shishkov <kostya.shishkov@gmail.com>
Sat, 20 Aug 2011 11:11:14 +0000 (13:11 +0200)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 21 Aug 2011 10:55:17 +0000 (12:55 +0200)
commitccb919e34b1276db5cfcd903e405e47ccb932d58
treebaed13c60802198dd09588a1dc2cdc5be2e25a23
parent5561fe487f0a2d522fd5655c129acf99b0d59490
WavPack demuxer: do not rely on index when timestamp is not in indexed range.

This fixes the situation when there are not enough entries in the index
(e.g. on initial seek there's only one index entry in the index) and index
search returns just the last known entry. That causes seeking function just to
seek there instead of trying harder to get at the requested position.

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/wv.c