fixed avresample_convert returning too few samples
removed unused declaration