aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2007-04-22 16:23:44 +0000
committerMichael Niedermayer <michaelni@gmx.at>2007-04-22 16:23:44 +0000
commitb5a3541da11e8071c06f07c8ab8fc22f3990f24e (patch)
treeb432354b6486ef48368ed125f9a9680f1ee39979 /libavformat/utils.c
parent0aecfdf9304d31e2382958cf6136ca32d26e4d9a (diff)
downloadffmpeg-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.c2
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;