changeset 2033:1f882c0d0b79 libavformat

fix av_seek_frame_generic() so that it doesnt fail if the requested timestamp is after the last with backward flag
author michael
date Sun, 22 Apr 2007 16:23:44 +0000
parents af6110a58658
children 355147fa5c72
files utils.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/utils.c	Sun Apr 22 11:07:35 2007 +0000
+++ b/utils.c	Sun Apr 22 16:23:44 2007 +0000
@@ -1279,7 +1279,7 @@
 
     index = av_index_search_timestamp(st, timestamp, flags);
 
-    if(index < 0){
+    if(index < 0 || index==st->nb_index_entries-1){
         int i;
         AVPacket pkt;