newbuild: amr: fix potential memory leak in decoder
newbuild: amr: cleanup encoder against -DVAD2