Support sample rates below 8kHz and round up channels like xbmc
Fix for avi files hanging when seeking