[FFmpeg-cvslog] r13436 - trunk/libavformat/avidec.c
michael
subversion
Mon May 26 22:29:17 CEST 2008
Author: michael
Date: Mon May 26 22:29:16 2008
New Revision: 13436
Log:
Support non interleaved avi with phantom streams.
Modified:
trunk/libavformat/avidec.c
Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c (original)
+++ trunk/libavformat/avidec.c Mon May 26 22:29:16 2008
@@ -642,7 +642,7 @@ static int avi_read_packet(AVFormatConte
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;
More information about the ffmpeg-cvslog
mailing list