changeset 4117:095a26342923 libavformat

Fix bug where the avi demxuer lost the first frame of malformed ODML avis. Fixes VS2k5DebugDemo-01-partial.avi
author michael
date Tue, 16 Dec 2008 16:14:07 +0000
parents f693bc71dc1e
children 264d0da0171d
files avidec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/avidec.c	Tue Dec 16 08:47:28 2008 +0000
+++ b/avidec.c	Tue Dec 16 16:14:07 2008 +0000
@@ -163,7 +163,7 @@
 #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)