h264: move the scratch buffers into the per-slice context