[FFmpeg-cvslog] r16167 - trunk/libavformat/avidec.c
michael
subversion
Tue Dec 16 17:14:07 CET 2008
Author: michael
Date: Tue Dec 16 17:14:07 2008
New Revision: 16167
Log:
Fix bug where the avi demxuer lost the first frame of malformed
ODML avis.
Fixes VS2k5DebugDemo-01-partial.avi
Modified:
trunk/libavformat/avidec.c
Modified: trunk/libavformat/avidec.c
==============================================================================
--- trunk/libavformat/avidec.c (original)
+++ trunk/libavformat/avidec.c Tue Dec 16 17:14:07 2008
@@ -163,7 +163,7 @@ static int read_braindead_odml_indx(AVFo
#endif
if(last_pos == pos || pos == base - 8)
avi->non_interleaved= 1;
- else
+ if(last_pos != pos)
av_add_index_entry(st, pos, ast->cum_len / FFMAX(1, ast->sample_size), len, 0, key ? AVINDEX_KEYFRAME : 0);
if(ast->sample_size)
More information about the ffmpeg-cvslog
mailing list