avi: Improve non-interleaved detection
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 2 Apr 2014 07:11:10 +0000 (09:11 +0200)
committerSean McGovern <gseanmcg@gmail.com>
Tue, 15 Apr 2014 02:31:48 +0000 (22:31 -0400)
commit03562c44c0c1e59d2a598390c5b2181ac406611c
tree630f9bfc0f4394e39d55d47129c018909686c23a
parentee21d270f8dc5fdb2263f5dd87407aae9fe1ecd1
avi: Improve non-interleaved detection

Additional fixes by Nigel Touati-Evans <nigel.touatievans@gmail.com>.

Check the index for streams with a time drift of 2s or a buffer drift
of 64MB.

Bug-Id: 666
CC: libav-stable@libav.org
Sample-Id: yet-another-broken-interleaved-avi.avi

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
libavformat/avidec.c