changeset 3361:8c5e331b5071 libavformat

Support non interleaved avi with phantom streams.
author michael
date Mon, 26 May 2008 20:29:16 +0000
parents c4cb83968a80
children 0dfa207c5d69
files avidec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;