OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d1ca187
)
10l (forgot sample_size)
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Dec 2008 20:38:05 +0000
(20:38 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 14 Dec 2008 20:38:05 +0000
(20:38 +0000)
Should fix fate.
Originally committed as revision 16133 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/avidec.c
patch
|
blob
|
history
diff --git
a/libavformat/avidec.c
b/libavformat/avidec.c
index
6ec30fd
..
bc12fd4
100644
(file)
--- 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);