summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-05-26 20:29:16 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-05-26 20:29:16 +0000
commit2be83b96b6d51fdc41c9d21e87e0f62f23ede263 (patch)
tree6de66912d1a8468f4734652d0547980aa72715f7 /libavformat
parent6286924461059ab833136b4ceded36466fb8dcf4 (diff)
Support non interleaved avi with phantom streams.
Originally committed as revision 13436 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/avidec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c
index ef544648bc..a312670d29 100644
--- a/libavformat/avidec.c
+++ b/libavformat/avidec.c
@@ -642,7 +642,7 @@ static int avi_read_packet(AVFormatContext *s, AVPacket *pkt)
ts= av_rescale(ts, AV_TIME_BASE * (int64_t)st->time_base.num, st->time_base.den);
// av_log(NULL, AV_LOG_DEBUG, "%"PRId64" %d/%d %"PRId64"\n", ts, st->time_base.num, st->time_base.den, ast->frame_offset);
- if(ts < best_ts){
+ if(ts < best_ts && st->nb_index_entries){
best_ts= ts;
best_st= st;
best_stream_index= i;