lavc/h264_slice: mark ref2frm as const pointers