mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-28 18:32:22 +00:00
Dont try generic seek if seek request before first index entry and backward.
Fixes issue1275 Originally committed as revision 21633 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
82e5f86bd5
commit
8c3b161e9e
@ -1548,6 +1548,9 @@ static int av_seek_frame_generic(AVFormatContext *s,
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user