Mercurial > libavformat.hg
changeset 4104:b55158db61fa libavformat
Fix non interleaved variable fps ODML avis.
Fixed issue738
author | michael |
---|---|
date | Sun, 14 Dec 2008 15:48:48 +0000 |
parents | 9b26d29b9020 |
children | 8f778b7c07d0 |
files | avidec.c |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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){