1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

10l (forgot sample_size)

Should fix fate.

Originally committed as revision 16133 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer 2008-12-14 20:38:05 +00:00
parent d1ca187fb6
commit a3bb564ee5

View File

@ -671,7 +671,8 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
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);