amr: fix segfault on exit due to inconsistent AMR interface usage
Merge branch 'amr' into codecs-fixes-20141023