port from qaac
Merge branch 'master' of github.com:nu774/cafdec