changeset 4107:0f0be7c78ece libavformat

10l (forgot sample_size) Should fix fate.
author michael
date Sun, 14 Dec 2008 20:38:05 +0000
parents 26bd5d91a2d6
children 132640f78cb2
files avidec.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Sun Dec 14 20:04:00 2008 +0000
+++ b/avidec.c	Sun Dec 14 20:38:05 2008 +0000
@@ -671,7 +671,8 @@
         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);