Added av_free_packet which remove last big leaking
Changed avresample_close to avresample_free to remove leakage everytime resampler is destroyed
Somehow QString tolocal8bit in qDebug() leaked so sorted that out
More memory leaks removed from code