avi: Improve non-interleaved detection
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 2 Apr 2014 07:11:10 +0000 (09:11 +0200)
committerReinhard Tartler <siretart@tauware.de>
Sun, 1 Jun 2014 00:07:51 +0000 (20:07 -0400)
commit42dcfe32a86772488bc15e025ba05d712d372c4c
treee794b42832293bb44d27dd655fc1964700b229d5
parent079758e49a4d6b3e7cf2e22bed71d34c46712242
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