h264: move remaining ER stuff into the per-slice context