dxva2_h264: set the correct ref frame index in the long slice struct