summaryrefslogtreecommitdiff
path: root/libavformat/avidec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-12-14 20:38:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-12-14 20:38:05 +0000
commita3bb564ee5d9d6bdd38a7ee76985e35f1be1184a (patch)
tree2f4a95eacbc6b5bbd0ba6762b132196fa66077bf /libavformat/avidec.c
parentd1ca187fb6cf03395e5f7b469f5d56d8a877dec2 (diff)
downloadffmpeg-a3bb564ee5d9d6bdd38a7ee76985e35f1be1184a.tar.gz
10l (forgot sample_size)
Should fix fate. Originally committed as revision 16133 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r--libavformat/avidec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index 6ec30fd0b4..bc12fd42ed 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -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);