[FFmpeg-cvslog] asfdec: ignore too tiny indexes
Michael Niedermayer
git at videolan.org
Tue Aug 14 03:24:50 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 14 03:21:08 2012 +0200| [e47d979cab6dd5b0650fad0058510ce0fcf23083] | committer: Michael Niedermayer
asfdec: ignore too tiny indexes
Fixes Ticket1521
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e47d979cab6dd5b0650fad0058510ce0fcf23083
---
libavformat/asfdec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 176b990..74133d9 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -1362,7 +1362,7 @@ static void asf_build_simple_index(AVFormatContext *s, int stream_index)
last_pos=pos;
}
}
- asf->index_read= ict > 0;
+ asf->index_read= ict > 1;
}
avio_seek(s->pb, current_pos, SEEK_SET);
}
More information about the ffmpeg-cvslog
mailing list