ffv1: split decoder and encoder