Probably it could be fold into the macro support but I'm having an hard time to properly do that myself. (irpc usage had been recently introduced in libav)