mm decoder: move buffer allocation from decode_init() to decode_frame().