[FFmpeg-cvslog] r16127 - trunk/libavformat/avidec.c

michael subversion
Sun Dec 14 16:48:49 CET 2008


Author: michael
Date: Sun Dec 14 16:48:48 2008
New Revision: 16127

Log:
Fix non interleaved variable fps ODML avis.
Fixed issue738


Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Sun Dec 14 16:48:48 2008
@@ -668,8 +668,11 @@ static int avi_read_packet(AVFormatConte
         best_ts= av_rescale(best_ts, best_st->time_base.den, AV_TIME_BASE * (int64_t)best_st->time_base.num); //FIXME a little ugly
         if(best_ast->remaining)
             i= av_index_search_timestamp(best_st, best_ts, AVSEEK_FLAG_ANY | AVSEEK_FLAG_BACKWARD);
-        else
+        else{
             i= av_index_search_timestamp(best_st, best_ts, AVSEEK_FLAG_ANY);
+            if(i>=0)
+                best_ast->frame_offset= best_st->index_entries[i].timestamp;
+        }
 
 //        av_log(NULL, AV_LOG_DEBUG, "%d\n", i);
         if(i>=0){




More information about the ffmpeg-cvslog mailing list