swresample/resample: fix invert_initial_buffer() after flush
authorMichael Niedermayer <michaelni@gmx.at>
Thu, 16 Oct 2014 19:18:15 +0000 (21:18 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Thu, 16 Oct 2014 20:35:27 +0000 (22:35 +0200)
commitf6bb2cd1b048a9169827368241769a2a7887efdd
treed4ce3c7daf462a744b0f0bd6c142d09edb3d84af
parent080c846f5999f71f2e1f46327656f3cc7080f700
swresample/resample: fix invert_initial_buffer() after flush

Fixes: asan_heap-uaf_2071250_7_139.ogg
Fixes: assertion failure
Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libswresample/resample.c