diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2007-04-22 16:23:44 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2007-04-22 16:23:44 +0000 |
commit | b5a3541da11e8071c06f07c8ab8fc22f3990f24e (patch) | |
tree | b432354b6486ef48368ed125f9a9680f1ee39979 /libavformat/utils.c | |
parent | 0aecfdf9304d31e2382958cf6136ca32d26e4d9a (diff) | |
download | ffmpeg-b5a3541da11e8071c06f07c8ab8fc22f3990f24e.tar.gz |
fix av_seek_frame_generic() so that it doesnt fail if the
requested timestamp is after the last with backward flag
Originally committed as revision 8783 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 59ee8df8bb..ddcf09ebb1 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1279,7 +1279,7 @@ static int av_seek_frame_generic(AVFormatContext *s, index = av_index_search_timestamp(st, timestamp, flags); - if(index < 0){ + if(index < 0 || index==st->nb_index_entries-1){ int i; AVPacket pkt; |