Add AVSEEK_FORCE flag to indicate that the code should attempt to seek

by any means.

Originally committed as revision 22557 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2010-03-15 22:54:22 +00:00
parent 53f66cee0c
commit 493f54ada0
3 changed files with 12 additions and 3 deletions

View File

@ -202,7 +202,7 @@ int64_t url_seek(URLContext *h, int64_t pos, int whence)
if (!h->prot->url_seek)
return AVERROR(EPIPE);
ret = h->prot->url_seek(h, pos, whence);
ret = h->prot->url_seek(h, pos, whence & ~AVSEEK_FORCE);
return ret;
}