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

michael subversion
Sun Dec 14 21:38:06 CET 2008


Author: michael
Date: Sun Dec 14 21:38:05 2008
New Revision: 16133

Log:
10l (forgot sample_size)
Should fix fate.


Modified:
   trunk/libavformat/avidec.c

Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c	(original)
+++ trunk/libavformat/avidec.c	Sun Dec 14 21:38:05 2008
@@ -671,7 +671,8 @@ static int avi_read_packet(AVFormatConte
         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;
+                best_ast->frame_offset= best_st->index_entries[i].timestamp
+                                      * FFMAX(1, best_ast->sample_size);
         }
 
 //        av_log(NULL, AV_LOG_DEBUG, "%d\n", i);




More information about the ffmpeg-cvslog mailing list