dv: Properly split decoder and encoder initialization