qsv: enforcing continuous memory layout