using HAS_AVRESAMPLE define