libavsmash: Integrate the codes of cleaning up audio decode handler.