# HG changeset patch # User michael # Date 1211833756 0 # Node ID 8c5e331b50713d376380e75bc85dd805b56ea15f # Parent c4cb83968a807e3dda5c3cf00e4c0f85fe3e1dea Support non interleaved avi with phantom streams. diff -r c4cb83968a80 -r 8c5e331b5071 avidec.c --- a/avidec.c Mon May 26 04:40:22 2008 +0000 +++ b/avidec.c Mon May 26 20:29:16 2008 +0000 @@ -642,7 +642,7 @@ 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;