diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-12-16 16:14:07 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-12-16 16:14:07 +0000 |
commit | ca5b528ea187974555fef5836629409ce63b5b74 (patch) | |
tree | 0393f1c1d4629416ec0cbf276d8f44bb7b38e055 /libavformat/avidec.c | |
parent | 271344377a3391c1a8ccc45e021721a56f237612 (diff) | |
download | ffmpeg-ca5b528ea187974555fef5836629409ce63b5b74.tar.gz |
Fix bug where the avi demxuer lost the first frame of malformed
ODML avis.
Fixes VS2k5DebugDemo-01-partial.avi
Originally committed as revision 16167 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avidec.c')
-rw-r--r-- | libavformat/avidec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/avidec.c b/libavformat/avidec.c index bc12fd42ed..83c01a9826 100644 --- a/libavformat/avidec.c +++ b/libavformat/avidec.c @@ -163,7 +163,7 @@ static int read_braindead_odml_indx(AVFormatContext *s, int frame_num){ #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) |