# HG changeset patch # User michael # Date 1229269728 0 # Node ID b55158db61fa9c19d9ec8db3ff178b96abd02b65 # Parent 9b26d29b90204ef7957e4c42b8c1dfac68504fbf Fix non interleaved variable fps ODML avis. Fixed issue738 diff -r 9b26d29b9020 -r b55158db61fa avidec.c --- a/avidec.c Sun Dec 14 14:01:12 2008 +0000 +++ b/avidec.c Sun Dec 14 15:48:48 2008 +0000 @@ -668,8 +668,11 @@ 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){